mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 20:25:08 +00:00

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.
14 lines
No EOL
280 B
HTML
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 |