Repository navigation
Commit 2b3a5ab
committed
fix: stop the important modifier mutating shared rule property objects
addRule appended ' !important' to the properties object in place.
Static utility maps and custom config rules hand out shared references,
so one !-flagged class permanently poisoned the shared object: a second
generator instance stacked ' !important !important', and later
non-important uses of the same class emitted the flagged declarations.
The modifier now writes to a fresh object.1 parent d53348d commit 2b3a5ab
2 files changed
Lines changed: 38 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2058 | 2058 | | |
2059 | 2059 | | |
2060 | 2060 | | |
2061 | | - | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
2062 | 2065 | | |
| 2066 | + | |
2063 | 2067 | | |
2064 | | - | |
| 2068 | + | |
2065 | 2069 | | |
| 2070 | + | |
2066 | 2071 | | |
2067 | 2072 | | |
2068 | 2073 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
803 | 803 | | |
804 | 804 | | |
805 | 805 | | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
0 commit comments