mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:57:35 +00:00
LibWeb: Don't touch flex items after they we've been frozen
When using the flex shrink factor, the flexible length resolution algorithm was incorrectly ignoring the `frozen` flag on items and would update the same items again, causing overconsumption of the remaining free space on the flex line.
This commit is contained in:
parent
0808463a7d
commit
f3556f239e
3 changed files with 46 additions and 0 deletions
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html><html><head><style>
|
||||
* {
|
||||
border: 1px solid black;
|
||||
font-family: 'SerenitySans';
|
||||
}
|
||||
.flexbox {
|
||||
display: flex;
|
||||
height: 50px;
|
||||
}
|
||||
.last {
|
||||
width: 500px;
|
||||
}
|
||||
</style></head><body><div class="flexbox"><div>LongPieceOfText</div><div>LongPieceOfText</div><div>LongPieceOfText</div><div>LongPieceOfText</div><div class="last item">LongPieceOfText</div></div></div></body></html>
|
Loading…
Add table
Add a link
Reference in a new issue