mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 20:18:12 +00:00

While CSS 2.2 does tell us to use the "auto height for BFC roots" calculation when resolving auto heights for abspos elements, that doesn't make sense for other formatting context roots, e.g flex. In lieu of implementing the entire new absolute positioning model from CSS-POSITION-3, this patch borrows one small nugget from it: using fit-content height as the auto height for non-BFC-root abspos elements.
20 lines
No EOL
427 B
HTML
20 lines
No EOL
427 B
HTML
<!DOCTYPE html><style>
|
|
* {
|
|
border: 1px solid black;
|
|
}
|
|
html {
|
|
background: white;
|
|
}
|
|
body {
|
|
display: flex;
|
|
flex-flow: column nowrap;
|
|
position: absolute;
|
|
top: 0px;
|
|
left: 0px;
|
|
background: pink;
|
|
}
|
|
div {
|
|
min-height: 0px;
|
|
background: orange;
|
|
}
|
|
</style><body><div>Diese Website nutzt Cookies und vergleichbare Funktionen zur |