abspos-containing-block-initial-001-ref.xht (1015B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> 2 <title>CSS Test: Test for containing block for absolutely positioned elements being initial containing block</title> 3 <link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org" /> 4 <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> 5 <style type="text/css"> 6 body { margin:0; } 7 .pos { position:absolute; width:100px; height:100px; } 8 </style> 9 </head> 10 <body> 11 <div style="height:10000px; margin:0; margin:10px; border:20px solid black; padding:30px;"></div> 12 <script type="text/javascript"> 13 window.scrollTo(0,50); 14 </script> 15 <div style="top:0; left:60px; background:yellow;" class="pos"></div> 16 <div style="right:0; top:60px; background:orange;" class="pos"></div> 17 <div style="bottom:0; left:60px; background:brown;" class="pos"></div> 18 <div style="left:0; top:60px; background:pink;" class="pos"></div> 19 20 21 22 </body></html>