LibWeb/CSS: Add CSS.registerProperty JS method

This adds an *almost* complete implementation of `CSS.registerProperty`
method enabling further progress on the `@property` feature.
This commit is contained in:
norbiros 2025-07-18 14:17:42 +02:00 committed by Sam Atkins
commit 90c0decd95
Notes: github-actions[bot] 2025-07-22 09:59:17 +00:00
7 changed files with 154 additions and 5 deletions

View file

@ -133,4 +133,9 @@ RefPtr<CSS::Supports> parse_css_supports(CSS::Parser::ParsingParams const& conte
return CSS::Parser::Parser::create(context, string).parse_as_supports();
}
Vector<CSS::Parser::ComponentValue> parse_component_values_list(CSS::Parser::ParsingParams const& parsing_params, StringView string)
{
return CSS::Parser::Parser::create(parsing_params, string).parse_as_list_of_component_values();
}
}