1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html lang="en">
3 <head>
4 <title>CSS Test: position: fixed; top: auto; test - html margin</title>
5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
6 <link rel="reviewer" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
7 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/absolute/019.html" type="text/html">
8 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#comp-abspos">
9 <meta name="flags" content="may">
10 <style type="text/css">
11 html { margin: 10px; padding: 0; }
12 body { margin: 0; padding: 0; }
13 .a { position: fixed; top: 10px; left: 10px; width: 20em; height: 4em;
14 background: red; color: yellow; }
15 .b { position: fixed; top: auto; left: auto; width: 20em; height: 4em;
16 background: green; color: white; }
17 </style>
18 </head>
19 <body>
20 <div class="a">FAIL</div>
21 <div class="b">This block should be green.</div>
22
23
24 </body>
25 </html>