1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 12:15:07 +00:00

Meta: Teach GenerateCSSPropertyID about linear-gradients

This commit is contained in:
MacDue 2022-07-12 00:21:14 +01:00 committed by Sam Atkins
parent ae6c0258a4
commit d924e9ff60

View file

@ -490,7 +490,7 @@ bool property_accepts_value(PropertyID property_id, StyleValue& style_value)
output_numeric_value_check(property_generator, "is_frequency"sv, "as_frequency().frequency().to_hertz()"sv, Array { "Frequency"sv }, min_value, max_value);
} else if (type_name == "image") {
property_generator.append(R"~~~(
if (style_value.is_image())
if (style_value.is_image() || style_value.is_linear_gradient())
return true;
)~~~");
} else if (type_name == "integer") {