Repository navigation
Commit 395d4f5
committed
Treat CRLF after a hex escape in at-rule params as one whitespace
CSS treats CRLF as one newline, so a hex escape consumes both
characters. The whitespace normalization consumed only the CR, and the
LF became a descendant combinator. So a plugin variant like
`@scope (.foo\2b\r\n.bar) to (.limit)` (a compound selector) got the same
signature as `[@scope_(.foo\2b__.bar)_to_(.limit)]:flex` (a descendant
selector).
The stylesheet parser already normalizes CRLF, so only plugin variants
keep it in their params.
Reported by CodeRabbit on #20715.1 parent 1772890 commit 395d4f5
2 files changed
Lines changed: 35 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2201 | 2201 | | |
2202 | 2202 | | |
2203 | 2203 | | |
| 2204 | + | |
| 2205 | + | |
| 2206 | + | |
| 2207 | + | |
| 2208 | + | |
| 2209 | + | |
| 2210 | + | |
| 2211 | + | |
| 2212 | + | |
| 2213 | + | |
| 2214 | + | |
| 2215 | + | |
| 2216 | + | |
| 2217 | + | |
| 2218 | + | |
| 2219 | + | |
| 2220 | + | |
| 2221 | + | |
| 2222 | + | |
| 2223 | + | |
| 2224 | + | |
| 2225 | + | |
| 2226 | + | |
| 2227 | + | |
| 2228 | + | |
| 2229 | + | |
| 2230 | + | |
| 2231 | + | |
| 2232 | + | |
2204 | 2233 | | |
2205 | 2234 | | |
2206 | 2235 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3575 | 3575 | | |
3576 | 3576 | | |
3577 | 3577 | | |
3578 | | - | |
| 3578 | + | |
| 3579 | + | |
| 3580 | + | |
| 3581 | + | |
| 3582 | + | |
| 3583 | + | |
3579 | 3584 | | |
3580 | 3585 | | |
3581 | 3586 | | |
| |||
0 commit comments