1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html id="test">
3 <head>
4 <title>CSS Test: Non-static position on the root element</title>
5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#propdef-position">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#choose-position">
8 <meta name="flags" content="dom may">
9 <meta name="assert" content="Root elements may treat non-static positions as 'static'.">
10 <style type="text/css">
11 html
12 {
13 position: fixed;
14 }
15 </style>
16 </head>
17 <body>
18 <p>Test passes if the word "fixed" or "static" is below this text.</p>
19 <script type="text/javascript">
20 var el = document.getElementById('test');
21 document.body.appendChild(document.createTextNode(window.getComputedStyle(el, null).position));
22 </script>
23 </body>
24 </html>