Files
ladybird/Userland/Libraries/LibWeb/CSS
Andreas Kling 43888b848c LibWeb: Resolve unresolved CSS calc() values in StyleComputer
When mixing calc() and var(), we're forced to delay resolving them until
we're in StyleComputer. Previously we'd just skip over them.

This patch handles calc() in the same pass as attr(). We reparse the
calc() value after var() expansion, and then try to resolve it to a
constant value if possible. If it's not possible, we leave the calc()
where it is, and maybe layout can figure it out later.

Note that I've only implemented resolution to integer and percentage in
this commit. There are more things a calc() could resolve to, and we
should implement those as well.
2022-11-02 22:42:48 +01:00
..
2022-09-16 10:50:48 +01:00
2022-11-01 23:07:05 +00:00
2022-11-01 23:07:05 +00:00
2022-09-18 13:27:24 -04:00