LibWeb: Parse anchor() function for inset properties

This commit is contained in:
Tim Ledbetter 2025-08-03 13:58:13 +01:00 committed by Jelle Raaijmakers
commit 1d9e4a6f62
Notes: github-actions[bot] 2025-08-03 20:10:50 +00:00
17 changed files with 2725 additions and 5 deletions

View file

@ -830,7 +830,9 @@ bool property_accepts_type(PropertyID property_id, ValueType value_type)
if (enum_names.contains_slow(type_name))
continue;
if (type_name == "angle") {
if (type_name == "anchor") {
property_generator.appendln(" case ValueType::Anchor:");
} else if (type_name == "angle") {
property_generator.appendln(" case ValueType::Angle:");
} else if (type_name == "background-position") {
property_generator.appendln(" case ValueType::BackgroundPosition:");