mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 01:07:34 +00:00

CSSPixels should not be wrapped into CSS::Length before being passed to resolved() to end up resolving percentages without losing precision. Fixes thrashing layout when 33.3333% width is used together with "box-sizing: border-box".
16 lines
No EOL
276 B
HTML
16 lines
No EOL
276 B
HTML
<!doctype html><style>
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
body {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
background: black;
|
|
width: 500px;
|
|
}
|
|
div {
|
|
flex-basis: 33.3333%;
|
|
height: 100px;
|
|
background: magenta;
|
|
}
|
|
</style><body><div></div><div></div><div></div> |