mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:47:34 +00:00
LibWeb: Accept a Block token as the body of a CSS At-Rule
I previously fixed this for `consume_a_qualified_rule()` and didn't notice the same comment in `consume_an_at_rule()` until now.
This commit is contained in:
parent
b135efe870
commit
caac0706c2
1 changed files with 7 additions and 1 deletions
|
@ -1204,7 +1204,13 @@ NonnullRefPtr<StyleRule> Parser::consume_an_at_rule(TokenStream<T>& tokens)
|
||||||
return rule;
|
return rule;
|
||||||
}
|
}
|
||||||
|
|
||||||
// how is "simple block with an associated token of <{-token>" a valid token?
|
if constexpr (IsSame<T, StyleComponentValueRule>) {
|
||||||
|
StyleComponentValueRule const& component_value = token;
|
||||||
|
if (component_value.is_block() && component_value.block().is_curly()) {
|
||||||
|
rule->m_block = component_value.block();
|
||||||
|
return rule;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
tokens.reconsume_current_input_token();
|
tokens.reconsume_current_input_token();
|
||||||
auto value = consume_a_component_value(tokens);
|
auto value = consume_a_component_value(tokens);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue