Repository navigation
Commit ff892d9
committed
test(css): pin the layer cases the at-rule gather declines, and trim the changeset
Reported by CodeRabbit on #22174.
The changeset line ran to 86 characters where the guide caps it at 80.
`@keyframes phi` was asserted by a substring neither the merged nor the
separated form contains, so it could not fail; it now states the whole
two-block sequence the case is about. An anonymous `@layer` was not
covered at all — `style.css` had only the named one — and it is the case
worth pinning, since two anonymous layers are two layers rather than one
condition written twice.
`_gatherDistantAtRule` now names the layer rule itself rather than
leaving it to `_joinRuleEntries`, which already refuses both spellings
(`ANONYMOUS_LAYER_RE`, and its `mergeRules` bail). No output moves — the
new case passes on the parent commit too — but the streaming path now
reads like the nested one, and a layer no longer occupies a held piece
that could never be folded.1 parent c1eb468 commit ff892d9
6 files changed
Lines changed: 17 additions & 4 deletions
File tree
- .changeset
- lib/css
- test/configCases/css/minimize-merge-distant-rules
- __snapshots__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6163 | 6163 | | |
6164 | 6164 | | |
6165 | 6165 | | |
| 6166 | + | |
| 6167 | + | |
| 6168 | + | |
| 6169 | + | |
6166 | 6170 | | |
6167 | 6171 | | |
6168 | 6172 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
50 | 56 | | |
51 | 57 | | |
52 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
0 commit comments