Repository navigation
Commit 581d97f
authored
fix(css): reach the printer branches the corpus never took, and settle the three it found (#22314)
* fix(css): read a relative hsla() in the space the model holds it under
Counting each printer table over every stylesheet on disk found the transform
reducers and half the relative-color functions at zero hits, so nothing held
them to printing the same bytes twice. A fixture drives every reducer shape
beside a value it must decline. Its first run threw: `hsla(from …)` looked its
space up under its own name, which the model holds under `hsl()`.
* fix(css): fold a fallback's mix and relative reference over the author's arguments
A fallback resolved the calls the target cannot read one at a time, so a mix or
a relative reference written over one was left for a second pass to fold. It
also read the bytes the first pass wrote, and a mix of two colors rounded into
eight bits is not the color the mix names. Both settle in one pass now, over the
arguments as written and over a call holding a call.
* fix(css): ignore recurseBlocks while printing, as skip already is
`recurseBlocks: false` threw on every stylesheet it printed, down to
`a{color:red}`: a block is printed from its children, and the option is what
leaves the walk without any. A writer already reads `skip` that way for the
same reason, so it now reads this one the same. The walk keeps it. The option
had no test of its own, which is what let the throw stand.1 parent 74dd5f0 commit 581d97f
6 files changed
Lines changed: 348 additions & 15 deletions
File tree
- .changeset
- lib/css
- test/unitCases
- tooling
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4180 | 4180 | | |
4181 | 4181 | | |
4182 | 4182 | | |
4183 | | - | |
| 4183 | + | |
4184 | 4184 | | |
4185 | 4185 | | |
4186 | 4186 | | |
| |||
7057 | 7057 | | |
7058 | 7058 | | |
7059 | 7059 | | |
7060 | | - | |
| 7060 | + | |
| 7061 | + | |
| 7062 | + | |
7061 | 7063 | | |
7062 | 7064 | | |
7063 | 7065 | | |
| |||
9981 | 9983 | | |
9982 | 9984 | | |
9983 | 9985 | | |
9984 | | - | |
| 9986 | + | |
| 9987 | + | |
| 9988 | + | |
| 9989 | + | |
9985 | 9990 | | |
9986 | | - | |
| 9991 | + | |
9987 | 9992 | | |
9988 | 9993 | | |
9989 | 9994 | | |
| |||
10062 | 10067 | | |
10063 | 10068 | | |
10064 | 10069 | | |
| 10070 | + | |
| 10071 | + | |
| 10072 | + | |
| 10073 | + | |
| 10074 | + | |
| 10075 | + | |
| 10076 | + | |
| 10077 | + | |
| 10078 | + | |
| 10079 | + | |
| 10080 | + | |
| 10081 | + | |
| 10082 | + | |
| 10083 | + | |
| 10084 | + | |
| 10085 | + | |
| 10086 | + | |
| 10087 | + | |
| 10088 | + | |
| 10089 | + | |
| 10090 | + | |
| 10091 | + | |
| 10092 | + | |
| 10093 | + | |
| 10094 | + | |
| 10095 | + | |
| 10096 | + | |
| 10097 | + | |
| 10098 | + | |
| 10099 | + | |
| 10100 | + | |
| 10101 | + | |
| 10102 | + | |
| 10103 | + | |
| 10104 | + | |
| 10105 | + | |
| 10106 | + | |
| 10107 | + | |
| 10108 | + | |
| 10109 | + | |
| 10110 | + | |
| 10111 | + | |
| 10112 | + | |
| 10113 | + | |
| 10114 | + | |
| 10115 | + | |
| 10116 | + | |
| 10117 | + | |
| 10118 | + | |
| 10119 | + | |
| 10120 | + | |
| 10121 | + | |
| 10122 | + | |
| 10123 | + | |
| 10124 | + | |
10065 | 10125 | | |
10066 | 10126 | | |
10067 | 10127 | | |
| |||
10108 | 10168 | | |
10109 | 10169 | | |
10110 | 10170 | | |
10111 | | - | |
10112 | | - | |
10113 | | - | |
| 10171 | + | |
| 10172 | + | |
| 10173 | + | |
| 10174 | + | |
| 10175 | + | |
| 10176 | + | |
| 10177 | + | |
10114 | 10178 | | |
10115 | 10179 | | |
10116 | 10180 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
0 commit comments