LibWeb: Add parsing support for the remaining transform functions

This commit is contained in:
Simon Wanner 2022-03-17 16:53:19 +01:00 committed by Andreas Kling
commit c4f46893f6
Notes: sideshowbarker 2024-07-17 17:11:02 +09:00
4 changed files with 89 additions and 4 deletions

View file

@ -335,6 +335,8 @@ Vector<CSS::Transformation> StyleProperties::transformations() const
values.append({ transformation_value.to_length() });
} else if (transformation_value.is_numeric()) {
values.append({ transformation_value.to_number() });
} else if (transformation_value.is_angle()) {
values.append({ transformation_value.as_angle().angle().to_degrees() });
} else {
dbgln("FIXME: Unsupported value in transform!");
}