Repository navigation
Commit 1496047
committed
fix(css): scope prefixing to top-level rules and prefix functional pseudos
Two edge cases: the sibling set that tracks at-rules and selectors has no nesting
key, so restrict rule-level prefixing to top-level rules — a nested `@keyframes` or
pseudo no longer adds or drops against a same-named top-level rule in another scope
(a nested rule's declarations are still prefixed). And a functional pseudo like
`:dir(rtl)` prints as one token, so match and rewrite its name apart from the
argument, which is kept in the sibling signature so `:dir(rtl)` and `:dir(ltr)`
stay distinct.1 parent 4d41df2 commit 1496047
2 files changed
Lines changed: 79 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5312 | 5312 | | |
5313 | 5313 | | |
5314 | 5314 | | |
| 5315 | + | |
| 5316 | + | |
| 5317 | + | |
| 5318 | + | |
| 5319 | + | |
| 5320 | + | |
| 5321 | + | |
| 5322 | + | |
| 5323 | + | |
| 5324 | + | |
| 5325 | + | |
| 5326 | + | |
5315 | 5327 | | |
5316 | 5328 | | |
5317 | 5329 | | |
| |||
5340 | 5352 | | |
5341 | 5353 | | |
5342 | 5354 | | |
5343 | | - | |
5344 | | - | |
| 5355 | + | |
| 5356 | + | |
| 5357 | + | |
5345 | 5358 | | |
5346 | 5359 | | |
5347 | 5360 | | |
5348 | 5361 | | |
5349 | 5362 | | |
5350 | 5363 | | |
5351 | | - | |
5352 | | - | |
5353 | | - | |
| 5364 | + | |
| 5365 | + | |
| 5366 | + | |
| 5367 | + | |
| 5368 | + | |
| 5369 | + | |
| 5370 | + | |
| 5371 | + | |
| 5372 | + | |
5354 | 5373 | | |
5355 | 5374 | | |
5356 | 5375 | | |
| |||
5380 | 5399 | | |
5381 | 5400 | | |
5382 | 5401 | | |
5383 | | - | |
| 5402 | + | |
5384 | 5403 | | |
5385 | 5404 | | |
5386 | 5405 | | |
| |||
7137 | 7156 | | |
7138 | 7157 | | |
7139 | 7158 | | |
7140 | | - | |
| 7159 | + | |
| 7160 | + | |
| 7161 | + | |
| 7162 | + | |
| 7163 | + | |
7141 | 7164 | | |
7142 | 7165 | | |
7143 | 7166 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2696 | 2696 | | |
2697 | 2697 | | |
2698 | 2698 | | |
| 2699 | + | |
| 2700 | + | |
| 2701 | + | |
| 2702 | + | |
| 2703 | + | |
| 2704 | + | |
2699 | 2705 | | |
2700 | 2706 | | |
2701 | 2707 | | |
| |||
2791 | 2797 | | |
2792 | 2798 | | |
2793 | 2799 | | |
| 2800 | + | |
| 2801 | + | |
| 2802 | + | |
| 2803 | + | |
| 2804 | + | |
| 2805 | + | |
| 2806 | + | |
| 2807 | + | |
| 2808 | + | |
| 2809 | + | |
| 2810 | + | |
| 2811 | + | |
| 2812 | + | |
| 2813 | + | |
| 2814 | + | |
| 2815 | + | |
| 2816 | + | |
2794 | 2817 | | |
2795 | 2818 | | |
2796 | 2819 | | |
| |||
2862 | 2885 | | |
2863 | 2886 | | |
2864 | 2887 | | |
| 2888 | + | |
| 2889 | + | |
| 2890 | + | |
| 2891 | + | |
| 2892 | + | |
| 2893 | + | |
| 2894 | + | |
| 2895 | + | |
| 2896 | + | |
| 2897 | + | |
| 2898 | + | |
| 2899 | + | |
| 2900 | + | |
| 2901 | + | |
| 2902 | + | |
| 2903 | + | |
| 2904 | + | |
| 2905 | + | |
| 2906 | + | |
| 2907 | + | |
| 2908 | + | |
| 2909 | + | |
| 2910 | + | |
| 2911 | + | |
| 2912 | + | |
| 2913 | + | |
2865 | 2914 | | |
2866 | 2915 | | |
2867 | 2916 | | |
| |||
0 commit comments