ladybird/Tests/LibWeb/Layout/input/abspos-flex-container-with-auto-height.html
Andreas Kling c808f6c637 LibWeb: Don't use BFC auto height for non-BFC abspos elements
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.
2023-06-20 13:42:31 +02:00

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