You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 31e6fe1
Browse filesBrowse the repository at this point in the historyBrowse files
fix(css): read an escaped name before deciding a color is an operand
`\66 rom` names the relative-color keyword, and an escaped `color-mix` or
gradient name names those, so the guard compared a spelling the source need
not use. The escaped gradient name was already folding before this branch.
Copy file name to clipboardExpand all lines: test/configCases/css/minimize-colors/__snapshots__/ConfigCacheTest.snap
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -71,5 +71,7 @@ Array [
71
71
"/*! ...and \`from\` heading a function's name is not the keyword */.r09{color:from(#976c67)}",
72
72
"/*! declined: \`color-mix()\` interpolates its arguments the way a gradient does */.m01{color:color-mix(inoklab,lch(50%2030),red)}.m02{color:color-mix(insrgb,hsl(12050%50%),red)}",
73
73
"/*! the legacy sRGB forms fold there too, where their channels are already bytes */.m03{color:color-mix(insrgb,#010203,red)}",
74
+
"/*! declined however the keyword is spelled: \`\\\\66 rom\` names it too, as an
75
+
escaped \`color-mix\` or gradient name names those */.r10{color:rgb(fromrgb(50%50%50%) rgb)}.m04{color:color-\\\\6dix(inoklab,lch(50%2030),red)}.g05{background-image:linear-\\\\67radient(lch(502030),red)}",
Copy file name to clipboardExpand all lines: test/configCases/css/minimize-colors/__snapshots__/ConfigTest.snap
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -71,5 +71,7 @@ Array [
71
71
"/*! ...and \`from\` heading a function's name is not the keyword */.r09{color:from(#976c67)}",
72
72
"/*! declined: \`color-mix()\` interpolates its arguments the way a gradient does */.m01{color:color-mix(inoklab,lch(50%2030),red)}.m02{color:color-mix(insrgb,hsl(12050%50%),red)}",
73
73
"/*! the legacy sRGB forms fold there too, where their channels are already bytes */.m03{color:color-mix(insrgb,#010203,red)}",
74
+
"/*! declined however the keyword is spelled: \`\\\\66 rom\` names it too, as an
75
+
escaped \`color-mix\` or gradient name names those */.r10{color:rgb(fromrgb(50%50%50%) rgb)}.m04{color:color-\\\\6dix(inoklab,lch(50%2030),red)}.g05{background-image:linear-\\\\67radient(lch(502030),red)}",
0 commit comments