mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:37:35 +00:00
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.
This commit is contained in:
parent
cb912f0e1a
commit
a5f8f8238f
3 changed files with 23 additions and 1 deletions
|
@ -0,0 +1,14 @@
|
|||
<!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
|
Loading…
Add table
Add a link
Reference in a new issue