flexbox_quirks_body.html (763B)
1 <!doctype quirks><!-- Intentional quirks mode --> 2 <title>CSS Test: Flex body in quirks mode</title> 3 <link rel="author" title="Aleks Totic" href="atotic@chromium.org"> 4 <link rel="help" href="https://www.w3.org/TR/css-flexbox-1/#main-sizing" title="9.3 Main Size Determination"> 5 <link rel="help" href="https://quirks.spec.whatwg.org/#the-body-element-fills-the-html-element-quirk" title="The body element fills the html element quirk"> 6 <link rel="match" href="./reference/flexbox_quirks_body-ref.html"> 7 <style> 8 html { 9 margin:3px 6px 9px 12px; 10 padding: 0px; 11 background-color: green; 12 } 13 body { 14 display: flex; 15 margin: 7px 11px 14px 23px; 16 padding: 0px; 17 background-color: yellow; 18 } 19 </style> 20 Flex body in quirks mode should fill viewport except for margins.