mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:08:10 +00:00
LibWeb+Meta: Parse the backdrop-filter
CSS property
Note: The parsing and style value completely ignores the SVG filters part of the spec for now... That's a yak for another day :^)
This commit is contained in:
parent
980c92e9b5
commit
d1b99282d8
4 changed files with 203 additions and 0 deletions
|
@ -485,6 +485,11 @@ bool property_accepts_value(PropertyID property_id, StyleValue& style_value)
|
|||
property_generator.append(R"~~~(
|
||||
if (style_value.has_color())
|
||||
return true;
|
||||
)~~~");
|
||||
} else if (type_name == "filter-value-list") {
|
||||
property_generator.append(R"~~~(
|
||||
if (style_value.is_filter_value_list())
|
||||
return true;
|
||||
)~~~");
|
||||
} else if (type_name == "frequency") {
|
||||
output_numeric_value_check(property_generator, "is_frequency"sv, "as_frequency().frequency().to_hertz()"sv, Array { "Frequency"sv }, min_value, max_value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue