LibWeb/CSS: Disallow third argument in 2D scale functions

This commit is contained in:
Tim Ledbetter 2025-06-15 05:03:22 +01:00 committed by Alexander Kalenik
parent e7906f4332
commit a3f6e71e33
Notes: github-actions[bot] 2025-06-15 13:59:55 +00:00
5 changed files with 73 additions and 6 deletions

View file

@ -116,7 +116,7 @@ static RefPtr<CSSStyleValue const> interpolate_scale(DOM::Element& element, Calc
return TransformationStyleValue::create(
PropertyID::Scale,
TransformFunction::Scale,
new_values.size() == 3 ? TransformFunction::Scale3d : TransformFunction::Scale,
move(new_values));
}