LibWeb/CSS: Parse nested rules in style blocks

Nested lists of declarations become CSSNestedDeclarations; at-rules are
allowed as long as they are CSSGroupingRules.
This commit is contained in:
Sam Atkins 2024-10-15 15:49:55 +01:00 committed by Andreas Kling
commit 36afff97d1
Notes: github-actions[bot] 2024-10-17 18:57:33 +00:00
5 changed files with 80 additions and 45 deletions

View file

@ -135,6 +135,7 @@ void CSSRuleList::for_each_effective_rule(TraversalOrder order, Function<void(We
case CSSRule::Type::LayerBlock:
case CSSRule::Type::Media:
case CSSRule::Type::Style:
case CSSRule::Type::Supports:
static_cast<CSSGroupingRule const&>(*rule).for_each_effective_rule(order, callback);
break;
@ -145,7 +146,6 @@ void CSSRuleList::for_each_effective_rule(TraversalOrder order, Function<void(We
case CSSRule::Type::LayerStatement:
case CSSRule::Type::Namespace:
case CSSRule::Type::NestedDeclarations:
case CSSRule::Type::Style:
break;
}