1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <title>CSS Test: Background propagation on <body> and <html> - non-propagated attached position</title>
5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
6 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/background/11.html" type="text/html">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/colors.html#background">
8 <meta name="flags" content="interact">
9 <style type="text/css">
10 body { border: solid lime; background: green url(support/square-purple.png) fixed no-repeat 50% 50%; color: white; }
11 html { border: solid blue; background: navy; color: yellow; }
12 :link, :visited { color: inherit; background: transparent; }
13 * { margin: 1em; padding: 1em; }
14 </style>
15
16 </head>
17 <body>
18 <p>In the exact middle of this page, there should be a purple tile.
19 The tile must only be visible when the green box overlaps the tile;
20 it must be hidden when overlapping the blue background.
21
22 Resizing the window should keep the position of the purple tile
23 in the center of the viewport, but the tile should still only
24 be visible inside this dark green box.</p>
25
26 </body>
27 </html>