LibWeb: Parse the CSS transform-origin property

This is almost a PositionStyleValue, but it's serialized differently,
so let's use a StyleValueList with 2 length-percentage values.
This commit is contained in:
Simon Wanner 2022-03-21 19:11:06 +01:00 committed by Andreas Kling
commit 63055ff5ad
Notes: sideshowbarker 2024-07-17 16:58:26 +09:00
3 changed files with 136 additions and 0 deletions

View file

@ -298,6 +298,7 @@ private:
RefPtr<StyleValue> parse_overflow_value(Vector<StyleComponentValueRule> const&);
RefPtr<StyleValue> parse_text_decoration_value(Vector<StyleComponentValueRule> const&);
RefPtr<StyleValue> parse_transform_value(Vector<StyleComponentValueRule> const&);
RefPtr<StyleValue> parse_transform_origin_value(Vector<StyleComponentValueRule> const&);
// calc() parsing, according to https://www.w3.org/TR/css-values-3/#calc-syntax
OwnPtr<CalculatedStyleValue::CalcSum> parse_calc_sum(TokenStream<StyleComponentValueRule>&);