mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-16 05:51:55 +00:00
LibWeb: Allow anonymous layer block rule with no declarations
This commit is contained in:
parent
30cdacc05a
commit
701fcb9e87
Notes:
github-actions[bot]
2025-06-17 07:59:15 +00:00
Author: https://github.com/tcl3
Commit: 701fcb9e87
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5111
Reviewed-by: https://github.com/AtkinsSJ ✅
6 changed files with 51 additions and 2 deletions
|
@ -288,7 +288,7 @@ Optional<FlyString> Parser::parse_layer_name(TokenStream<ComponentValue>& tokens
|
|||
GC::Ptr<CSSRule> Parser::convert_to_layer_rule(AtRule const& rule, Nested nested)
|
||||
{
|
||||
// https://drafts.csswg.org/css-cascade-5/#at-layer
|
||||
if (!rule.child_rules_and_lists_of_declarations.is_empty()) {
|
||||
if (rule.is_block_rule) {
|
||||
// CSSLayerBlockRule
|
||||
// @layer <layer-name>? {
|
||||
// <rule-list>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue