1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 20:25:08 +00:00
serenity/Tests/LibWeb/Layout/input/flex/automatic-minimum-size-with-explicit-flex-basis-and-flex-container-with-max-content-main-size.html
Andreas Kling a5f8f8238f LibWeb: Fix a case of incorrect flex container max-content main size
We were incorrectly returning a "specified size suggestion" for flex
items with a definite main size where that main size was also automatic.

This led to us incorrectly choosing 0 as the automatic minimum size for
that flex item, instead of its min-content size.
2023-06-08 13:54:11 +02:00

14 lines
No EOL
280 B
HTML

<!doctype html><style>
* { border: 1px solid black; }
html { background: white; }
.flex {
width: max-content;
display: flex;
background: pink;
height: 50px;
}
.item {
flex-basis: 1px;
background: orange;
}
</style><body class="flex"><div class="item">hello