LibWeb/CSS: Update a FIXME that's completed elsewhere

This commit is contained in:
Sam Atkins 2024-10-31 16:49:43 +00:00 committed by Andreas Kling
commit 3b36ca2711
Notes: github-actions[bot] 2024-11-07 14:13:08 +00:00

View file

@ -540,8 +540,9 @@ Variant<Empty, QualifiedRule, Parser::InvalidRuleError> Parser::consume_a_qualif
rule.declarations = move(first.get<Vector<Declaration>>());
}
// FIXME: If any remaining items of child rules are lists of declarations, replace them with nested declarations rules
// containing the list as its sole child. Assign child rules to rules child rules.
// If any remaining items of child rules are lists of declarations, replace them with nested declarations rules
// containing the list as its sole child. Assign child rules to rules child rules.
// NOTE: We do this later, when converting the QualifiedRule to a CSSRule type.
// If rule is valid in the current context, return it; otherwise return an invalid rule error.
if (is_valid_in_the_current_context(rule))