mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 01:56:38 +00:00
LibWeb: Support flex items with calc() main size containing percentages
If a flex item's main size is a CSS calc() value that resolves to a length and contains a percentage, we can only resolve it when we have the corresponding reference size for the containing block.
This commit is contained in:
parent
d6c3cbd958
commit
06617a982e
Notes:
sideshowbarker
2024-07-18 22:57:59 +09:00
Author: https://github.com/awesomekling
Commit: 06617a982e
Pull-request: https://github.com/SerenityOS/serenity/pull/19222
3 changed files with 38 additions and 3 deletions
|
@ -0,0 +1,17 @@
|
|||
<!doctype html><style>
|
||||
html {
|
||||
background: white;
|
||||
}
|
||||
body {
|
||||
background: pink;
|
||||
display: flex;
|
||||
}
|
||||
.orange {
|
||||
background: orange;
|
||||
display: flex;
|
||||
}
|
||||
.lime {
|
||||
background: lime;
|
||||
width: calc(50% - 10px);
|
||||
}
|
||||
</style><body class=pink><div class=orange><div class=lime>This is a bunch of text
|
Loading…
Add table
Add a link
Reference in a new issue