1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-17 17:05:07 +00:00
serenity/Tests/LibWeb/Layout/input/css-var-in-calc-block.html
Andreas Kling 1b55ff6f4c LibWeb: Expand CSS var() inside calc() paren blocks
Before this change, this var() would get expanded:

    calc(10px * var(--one))

But this one would not:

    calc(10px * (var(--one))
2023-06-19 17:54:07 +02:00

10 lines
No EOL
177 B
HTML

<!doctype html><style>
* {
border: 1px solid black;
}
div {
--five: 5;
width: calc(50px * (var(--five)));
height: calc(50px * (0 + var(--five)));
}
</style><div>