1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 20:15:06 +00:00
serenity/Tests/LibWeb/Layout/input/flex/flex-item-with-calc-main-size-and-layout-dependent-containing-block-size.html
Andreas Kling 06617a982e 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.
2023-06-02 17:17:45 +02:00

17 lines
365 B
HTML

<!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