Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html> |
michael@0 | 3 | <head> |
michael@0 | 4 | <title>CSS 2.1 Test Suite: Test for containing block for absolutely positioned elements being initial containing block</title> |
michael@0 | 5 | <link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org" /> |
michael@0 | 6 | <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> |
michael@0 | 7 | <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#containing-block-details" /> |
michael@0 | 8 | <meta name="assert" content="If there is no such ancestor, the containing block is the initial containing block." /> |
michael@0 | 9 | <meta name="flags" content="dom" /> |
michael@0 | 10 | <style> |
michael@0 | 11 | html { margin:10px; border:20px solid black; padding:30px; } |
michael@0 | 12 | body { height:10000px; margin:0; } |
michael@0 | 13 | div { position:absolute; width:100px; height:100px; } |
michael@0 | 14 | </style> |
michael@0 | 15 | </head> |
michael@0 | 16 | <body> |
michael@0 | 17 | <script> |
michael@0 | 18 | window.scrollTo(0,50); |
michael@0 | 19 | </script> |
michael@0 | 20 | <div style="top:0; background:yellow;"></div> |
michael@0 | 21 | <div style="right:0; background:orange;"></div> |
michael@0 | 22 | <div style="bottom:0; background:brown;"></div> |
michael@0 | 23 | <div style="left:0; background:pink;"></div> |
michael@0 | 24 | </body> |
michael@0 | 25 | </html> |