abspos-containing-block-initial-009e

Test for containing block for absolutely positioned elements being initial containing block

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
If there is no such ancestor, the containing block is the initial containing block.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html><head><link rel="reference" href="abspos-containing-block-initial-009-ref.xht"><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 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#containing-block-details">
 6 <meta name="assert" content="If there is no such ancestor, the containing block is the initial containing block.">
 7 <meta name="flags" content="">
 8 </head><body style="position:absolute; width:50%; height:50%; top:50px; left:50px; margin:0; border:10px solid black;">
 9 
10 
11 </body></html>