mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-10-26 14:57:54 +03:00
c808f6c637
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
427 B
HTML
20 lines
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 |