Skip to content

Commit 4ff407e

Browse files
fix(css): read a block owner's at-keyword through _atKeywordOf when ordering declarations
Ported from #22586: main throws minifying an at-rule block of several declarations, which fails this branch's CSS invariants and code-size jobs. Claude-Session: https://claude.ai/code/session_01ViD41i2KdwwGxrDk7yrjeD
1 parent 24bd2f3 commit 4ff407e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/css/syntax-parser.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17598,7 +17598,7 @@ const _composeBlockBody = (
1759817598
items.length > 1 &&
1759917599
owner !== null &&
1760017600
(path.type(owner) === T_QUALIFIED_RULE ||
17601-
_NESTED_GROUP_AT_RULES.has(path.atKeyword(owner))) &&
17601+
_NESTED_GROUP_AT_RULES.has(_atKeywordOf(owner))) &&
1760217602
_writesOnlyDeclarations(path, items, texts)
1760317603
? []
1760417604
: null;

0 commit comments

Comments
 (0)