mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 22:37:34 +00:00
LibWeb: Implement most of CSSStyleRule.insertRule()
This commit is contained in:
parent
f53d0ddba2
commit
994e33b0f7
5 changed files with 42 additions and 8 deletions
|
@ -3298,6 +3298,12 @@ RefPtr<CSS::StyleValue> parse_css_value(CSS::ParsingContext const& context, Stri
|
|||
return parser.parse_as_css_value(property_id);
|
||||
}
|
||||
|
||||
RefPtr<CSS::CSSRule> parse_css_rule(CSS::ParsingContext const& context, StringView css_text)
|
||||
{
|
||||
CSS::Parser parser(context, css_text);
|
||||
return parser.parse_as_rule();
|
||||
}
|
||||
|
||||
Optional<CSS::SelectorList> parse_selector(CSS::ParsingContext const& context, StringView const& selector_text)
|
||||
{
|
||||
CSS::Parser parser(context, selector_text);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue