mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
In quirks mode, the body element expands to fill its parent (the html element) when height is auto, per the quirks spec section 3.7. This quirk applies when: - The document is in quirks mode - The body element has height: auto - The body is not absolutely/fixed positioned - The body is not floated - The body is not inline-level
11 lines
180 B
HTML
11 lines
180 B
HTML
<!DOCTYPE quirks>
|
|
<html>
|
|
<style>
|
|
body { margin: 0; }
|
|
</style>
|
|
<body>
|
|
<!-- In quirks mode, body element should fill the html element (viewport) -->
|
|
<div>hello</div>
|
|
</body>
|
|
</html>
|