1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:37:44 +00:00

LibWeb: Treat unresolvable percentage flex-basis values as 'content'

Per CSS-FLEXBOX-1, we should treat percentage values of flex-basis as
'content' if they resolve against an indefinite size of the flex
container.
This commit is contained in:
Andreas Kling 2023-04-18 09:10:28 +02:00
parent 8f988b7bae
commit 0d5e0d27aa
3 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,18 @@
<!doctype html><style>
* {
font: 16px SerenitySans;
}
.outer {
display: flex;
flex-direction: column;
width: 200px;
}
.middle {
flex-basis: 0%;
height: 100px;
background: red;
}
.inner {
background: lime;
}
</style><body class="outer"><div class="middle"><div class="inner">percentages are hard