mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:07:45 +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:
parent
8f988b7bae
commit
0d5e0d27aa
3 changed files with 36 additions and 0 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue