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
parent 038d8ade50
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

@ -577,6 +577,7 @@ CSS::CSSRule* parse_css_rule(CSS::Parser::ParsingParams const&, StringView);
RefPtr<CSS::MediaQuery> parse_media_query(CSS::Parser::ParsingParams const&, StringView);
Vector<NonnullRefPtr<CSS::MediaQuery>> parse_media_query_list(CSS::Parser::ParsingParams const&, StringView);
RefPtr<CSS::Supports> parse_css_supports(CSS::Parser::ParsingParams const&, StringView);
Vector<CSS::Parser::ComponentValue> parse_component_values_list(CSS::Parser::ParsingParams const&, StringView);
GC::Ref<JS::Realm> internal_css_realm();
}