LibWeb: Parse @property CSS directives

This is not a complete parse, as it doesn't validate or take into
account the parsed syntax.
Enough to get us a few more WPT tests though :)
This commit is contained in:
Alex Ungurianu 2024-10-17 20:26:22 +01:00 committed by Sam Atkins
commit a4c72f50c0
Notes: github-actions[bot] 2024-10-23 05:56:40 +00:00
6 changed files with 178 additions and 0 deletions

View file

@ -187,6 +187,7 @@ private:
JS::GCPtr<CSSMediaRule> convert_to_media_rule(AtRule const&, Nested);
JS::GCPtr<CSSNamespaceRule> convert_to_namespace_rule(AtRule const&);
JS::GCPtr<CSSSupportsRule> convert_to_supports_rule(AtRule const&, Nested);
JS::GCPtr<CSSPropertyRule> convert_to_property_rule(AtRule const& rule);
PropertyOwningCSSStyleDeclaration* convert_to_style_declaration(Vector<Declaration> const&);
Optional<StyleProperty> convert_to_style_property(Declaration const&);