serenity/Tests/LibWeb/Layout/input/block-and-inline/html-element-height-quirks-mode-off.html
Aliaksandr Kalenik a482166087 LibWeb: Bring html element height calculation closer to the spec
Previously we always set the height of the HTML element equal to the
viewport height but now this will only happen in quirks mode as it is
intended. Otherwise the html element height will be computed as auto.
2023-08-31 21:43:58 +02:00

15 lines
No EOL
319 B
HTML

<!doctype html><style>
* {
outline: 1px solid black !important;
}
body {
border: 10px solid purple;
display: block;
height: 50%;
}
.box {
background-color: palevioletred;
height: 100px;
width: 100px;
}
</style><body><div class="box"></div>