Repository navigation
Commit a5433d9
committed
fix(css): match an at-keyword with CSS whitespace, not JavaScript's
`AT_RULE_NAME_SOURCE`, `ANONYMOUS_LAYER_RE` and the prelude trim next to
them used `\s` and `String.trim`, both of which treat U+00A0 as whitespace.
CSS does not: it is an identifier code point, so a name carrying one keeps
it, and truncating there reads `@layer ` as the `@layer` it is not.
No output moves. Both helpers only ever refuse, and the deciding path for
the tables they feed is the node-based `path.atKeyword()`, which reads the
name the tokenizer built. This makes the two agree rather than leaving one
of them right by being shadowed.1 parent ca2d800 commit a5433d9
2 files changed
Lines changed: 20 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4007 | 4007 | | |
4008 | 4008 | | |
4009 | 4009 | | |
4010 | | - | |
4011 | | - | |
4012 | | - | |
4013 | | - | |
| 4010 | + | |
| 4011 | + | |
| 4012 | + | |
| 4013 | + | |
4014 | 4014 | | |
4015 | 4015 | | |
4016 | 4016 | | |
| |||
4793 | 4793 | | |
4794 | 4794 | | |
4795 | 4795 | | |
4796 | | - | |
| 4796 | + | |
| 4797 | + | |
| 4798 | + | |
| 4799 | + | |
4797 | 4800 | | |
4798 | 4801 | | |
4799 | 4802 | | |
| |||
15381 | 15384 | | |
15382 | 15385 | | |
15383 | 15386 | | |
15384 | | - | |
| 15387 | + | |
15385 | 15388 | | |
15386 | 15389 | | |
15387 | 15390 | | |
| |||
15397 | 15400 | | |
15398 | 15401 | | |
15399 | 15402 | | |
15400 | | - | |
| 15403 | + | |
15401 | 15404 | | |
15402 | 15405 | | |
15403 | 15406 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11464 | 11464 | | |
11465 | 11465 | | |
11466 | 11466 | | |
| 11467 | + | |
| 11468 | + | |
| 11469 | + | |
| 11470 | + | |
| 11471 | + | |
| 11472 | + | |
| 11473 | + | |
| 11474 | + | |
| 11475 | + | |
| 11476 | + | |
11467 | 11477 | | |
11468 | 11478 | | |
11469 | 11479 | | |
| |||
0 commit comments