1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:47:34 +00:00

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
parent ad4f35ff37
commit c4f46893f6
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!");
}