Files
ladybird/Tests/LibWeb/Layout/input/flex/flex-basis-smaller-than-min-content-size.html
Andreas Kling f00f975cf4 LibWeb: Treat percentage max-width as none during min-content sizing
...but only for non-replaced boxes. This is what CSS-SIZING-3 tells us
to do, and we were already doing it for width, but neglecting max-width.
2025-09-28 19:25:18 +02:00

24 lines
487 B
HTML

<!doctype html><style type="text/css">
* { outline: 1px solid black; }
html {
height: 200px;
}
body {
display: flex;
width: 300px;
height: 200px;
}
#item2 {
flex-grow: 0;
flex-shrink: 1;
flex-basis: 25px;
height: 50px;
}
#item2-inner {
max-width: 50%;
width: 100px;
height: 50px;
background: orange;
}
</style><body><div id="item2"><div id="item2-inner">