mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:07:36 +00:00
LibWeb: Add proper support for Angle parameters in transform functions
Also, made the `reference_length` parameter optional for the lambda that extracts transform-function parameters, since it is only needed to resolve `LengthPercentage` parameters.
This commit is contained in:
parent
e60beef12e
commit
b5ab961e20
3 changed files with 20 additions and 14 deletions
|
@ -82,9 +82,11 @@ public:
|
|||
float width { 0 };
|
||||
};
|
||||
|
||||
using TransformValue = Variant<CSS::Angle, CSS::LengthPercentage, float>;
|
||||
|
||||
struct Transformation {
|
||||
CSS::TransformFunction function;
|
||||
Vector<Variant<CSS::LengthPercentage, float>> values;
|
||||
Vector<TransformValue> values;
|
||||
};
|
||||
|
||||
struct TransformOrigin {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue