@@ -22,7 +22,7 @@ bool is_animatable_property(JsonObject& properties, StringView property_name);
22
22
static bool type_name_is_enum (StringView type_name)
23
23
{
24
24
return !AK::first_is_one_of (type_name,
25
- " angle" sv, " background-position" sv, " color" sv, " custom-ident" sv, " easing-function" sv, " flex" sv, " frequency" sv, " image" sv,
25
+ " angle" sv, " background-position" sv, " basic-shape " sv, " color" sv, " custom-ident" sv, " easing-function" sv, " flex" sv, " frequency" sv, " image" sv,
26
26
" integer" sv, " length" sv, " number" sv, " paint" sv, " percentage" sv, " position" sv, " ratio" sv, " rect" sv,
27
27
" resolution" sv, " string" sv, " time" sv, " url" sv);
28
28
}
@@ -180,6 +180,7 @@ NonnullRefPtr<StyleValue> property_initial_value(JS::Realm&, PropertyID);
180
180
enum class ValueType {
181
181
Angle,
182
182
BackgroundPosition,
183
+ BasicShape,
183
184
Color,
184
185
CustomIdent,
185
186
EasingFunction,
@@ -699,6 +700,8 @@ bool property_accepts_type(PropertyID property_id, ValueType value_type)
699
700
property_generator.appendln (" case ValueType::Angle:" );
700
701
} else if (type_name == " background-position" ) {
701
702
property_generator.appendln (" case ValueType::BackgroundPosition:" );
703
+ } else if (type_name == " basic-shape" ) {
704
+ property_generator.appendln (" case ValueType::BasicShape:" );
702
705
} else if (type_name == " color" ) {
703
706
property_generator.appendln (" case ValueType::Color:" );
704
707
} else if (type_name == " custom-ident" ) {
0 commit comments