diff options
author | MacDue <macdue@dueutil.tech> | 2022-07-12 00:21:14 +0100 |
---|---|---|
committer | Sam Atkins <atkinssj@gmail.com> | 2022-07-17 20:11:38 +0100 |
commit | d924e9ff609a555247f19aa0db87797efeb655a7 (patch) | |
tree | 5b201504266dfc369d9646d27acdf66e71428cca /Meta | |
parent | ae6c0258a4993fa720d7b4827abd9bcdae4e4aa6 (diff) | |
download | serenity-d924e9ff609a555247f19aa0db87797efeb655a7.zip |
Meta: Teach GenerateCSSPropertyID about linear-gradients
Diffstat (limited to 'Meta')
-rw-r--r-- | Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateCSSPropertyID.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateCSSPropertyID.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateCSSPropertyID.cpp index 2302e04581..a80ea8d835 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateCSSPropertyID.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateCSSPropertyID.cpp @@ -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") { |