Tim Ledbetter
c5d1ec4dea
LibWeb/CSS: Ensure length is absolute before converting to pixels
...
Previously, creating a DOMMatrix with a transform that contained
non-absolute units would cause a crash.
2024-02-21 19:38:17 +01:00
Aliaksandr Kalenik
f529188fb8
LibWeb: Resolve CSS transform lengths against padding rect
...
Fixes https://github.com/SerenityOS/serenity/issues/22797
2024-01-16 21:54:10 +01:00
Bastiaan van der Plaat
675b242e84
LibWeb: Add missing CSS Transforms Module Level 2 functions
2024-01-10 09:48:25 +01:00
Bastiaan van der Plaat
c443f80137
LibWeb: Allow percentages on CSS transform scale functions
2024-01-10 09:48:25 +01:00
Bastiaan van der Plaat
be7538961b
LibWeb: Add DOMMatrix string constructor and set matrix value
2024-01-07 13:15:53 +01:00
Aliaksandr Kalenik
4bc38300ad
LibWeb: Forbid using CSS::Length as reference value in resolved()
...
CSSPixels should not be wrapped into CSS::Length before being passed
to resolved() to end up resolving percentages without losing
precision.
Fixes thrashing layout when 33.3333% width is used together with
"box-sizing: border-box".
2024-01-07 09:03:57 +01:00
Aliaksandr Kalenik
961b067df8
LibWeb/CSS: Add support for translateZ() transform property
2023-11-30 22:54:02 +01:00
Sam Atkins
642ad80960
LibWeb: Make CSS Transformation struct a proper class
...
Move it out of ComputedValues.h into its own files, and take the
transformation-to-matrix code from StackingContext.
2023-10-15 07:14:39 +02:00