mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-27 11:48:59 +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
Notes:
sideshowbarker
2024-07-17 07:07:52 +09:00
Author: https://github.com/MacDue
Commit: d1b99282d8
Pull-request: https://github.com/SerenityOS/serenity/pull/15123
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/gmta
Reviewed-by: https://github.com/linusg ✅
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