1
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN">
4 <title>CSS
2.1 Test Suite: Containing block for absolute positioning
</title>
5 <link rel=
"help" href=
"http://www.w3.org/TR/CSS21/visudet.html#containing-block-details">
6 <style type=
"text/css">
7 html
{ margin: 0; padding: 0; width: 100%; height: 100%; position: relative
; }
8 body
{ background: red
; margin: 100px 20%; } /* background propagates up to html and then canvas */
9 div
{ background: white
; color: green
; position: absolute
; top: 0; right: 0; bottom: 0; left: 0; }
14 There should be no red on this page.