Repository navigation
Commit 517524f
committed
fix(css): claim a style query's comments, and widen what names
A container style query is written back from its source, comments included,
so the copies the writer had queued have to be claimed there — flushed after
the rule instead, the comment was emitted a second time.
An at-keyword carrying an escape can still name `@namespace`, and only
decoding tells the two apart, so the prologue scan now treats any escaped
at-keyword as one. Over-wide on purpose: a false positive keeps an empty
rule, which is the side that cannot change what the sheet means.
The equivalence harness maps a surrogate escape to U+FFFD as §4.3.7 says,
and normalizes a zero in every length unit CSS Values 4 states rather than
the nine it named — the printer folds `0vw` too.@namespace
1 parent 0405a14 commit 517524f
4 files changed
Lines changed: 85 additions & 8 deletions
File tree
- .changeset
- lib/css
- test
- helpers
| 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 | |
|---|---|---|---|
| |||
10481 | 10481 | | |
10482 | 10482 | | |
10483 | 10483 | | |
10484 | | - | |
| 10484 | + | |
| 10485 | + | |
| 10486 | + | |
| 10487 | + | |
| 10488 | + | |
| 10489 | + | |
10485 | 10490 | | |
10486 | 10491 | | |
10487 | 10492 | | |
| |||
11506 | 11511 | | |
11507 | 11512 | | |
11508 | 11513 | | |
11509 | | - | |
| 11514 | + | |
| 11515 | + | |
| 11516 | + | |
| 11517 | + | |
11510 | 11518 | | |
11511 | 11519 | | |
11512 | 11520 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2791 | 2791 | | |
2792 | 2792 | | |
2793 | 2793 | | |
| 2794 | + | |
| 2795 | + | |
| 2796 | + | |
| 2797 | + | |
| 2798 | + | |
| 2799 | + | |
| 2800 | + | |
| 2801 | + | |
| 2802 | + | |
| 2803 | + | |
| 2804 | + | |
| 2805 | + | |
2794 | 2806 | | |
2795 | 2807 | | |
2796 | 2808 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
155 | 156 | | |
156 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
157 | 160 | | |
158 | 161 | | |
159 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
160 | 220 | | |
161 | 221 | | |
162 | 222 | | |
| |||
270 | 330 | | |
271 | 331 | | |
272 | 332 | | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
| 333 | + | |
277 | 334 | | |
278 | 335 | | |
279 | 336 | | |
| |||
0 commit comments