mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 20:42:21 +00:00
LibWeb: Set flex-basis
to 0%
when omitted from flex
shorthand
This doesn't match the spec, *but* matches what other engines do, and it turns out this is required for web compat. (It fixes the menu on MDN.)
This commit is contained in:
parent
dd2080c55f
commit
102b8d717f
Notes:
sideshowbarker
2024-07-17 04:10:16 +09:00
Author: https://github.com/awesomekling
Commit: 102b8d717f
Pull-request: https://github.com/SerenityOS/serenity/pull/19304
Reviewed-by: https://github.com/Lubrsi
3 changed files with 59 additions and 4 deletions
|
@ -0,0 +1,24 @@
|
|||
<!doctype html><style>
|
||||
* { border: 1px solid black; }
|
||||
html { background: white; }
|
||||
.flex {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
background: pink;
|
||||
width: 500px;
|
||||
}
|
||||
.item {
|
||||
display: flex;
|
||||
background: orange;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
}
|
||||
.one {
|
||||
flex: 1;
|
||||
}
|
||||
.two {
|
||||
flex: 1 1;
|
||||
}
|
||||
</style>
|
||||
<div class="flex">hello<div class="item one">friends</div></div>
|
||||
<div class="flex">hello<div class="item two">friends</div></div>
|
Loading…
Add table
Add a link
Reference in a new issue