mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:48:12 +00:00
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.
This commit is contained in:
parent
6e9aeccf90
commit
a482166087
7 changed files with 63 additions and 8 deletions
|
@ -0,0 +1,15 @@
|
|||
<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>
|
Loading…
Add table
Add a link
Reference in a new issue