@@ -4,31 +4,31 @@ import { computedValue, reducePrecisionWholeValue } from '../util/serialize.mjs'
44{
55 const tests = [
66 // https://github.com/w3c/csswg-drafts/issues/14095
7- [ 'hsl(from hsl(180 none 50%) h s l)' , 'hsl(none none 50%)' ] ,
8- [ 'hsl(from hsl(180 0 50%) h s l)' , 'hsl(none 0% 50% )' ] ,
7+ [ 'hsl(from hsl(180 none 50%) h s l)' , 'hsl(180 none 50%)' ] ,
8+ [ 'hsl(from hsl(180 0 50%) h s l)' , 'color(srgb 0.5 0.5 0.5 )' ] ,
99 [ 'hsl(from lch(20 none 180) h s l)' , 'hsl(none none 18.93757452%)' ] ,
1010 [ 'hsl(from lch(20 0 180) h s l)' , 'hsl(none 0% 18.93757452%)' ] ,
1111
1212 // https://github.com/w3c/csswg-drafts/issues/14100
1313 [ 'lch(from orchid l 0 h)' , 'lch(62.75256542 0 326.96909222)' ] ,
14- [ 'lch(from lch(from orchid l 0 h) l c h)' , 'lch(62.75256542 0 none )' ] ,
14+ [ 'lch(from lch(from orchid l 0 h) l c h)' , 'lch(62.75256542 0 326.96909222 )' ] ,
1515 [ 'color-mix(in lch, lch(from orchid l 0 h))' , 'lch(62.75256542 0 none)' ] ,
1616
1717 // exhaustive tests
1818 // HSL
1919 [ 'hsl(from hsl(none 50% 50%) h s l)' , 'hsl(none 50% 50%)' ] ,
20- [ 'hsl(from hsl(180 none 50%) h s l)' , 'hsl(none none 50%)' ] ,
20+ [ 'hsl(from hsl(180 none 50%) h s l)' , 'hsl(180 none 50%)' ] ,
2121 [ 'hsl(from hsl(180 50% none) h s l)' , 'hsl(180 50% none)' ] ,
2222 [ 'hsl(from hsl(none none 50%) h s l)' , 'hsl(none none 50%)' ] ,
23- [ 'hsl(from hsl(180 none none) h s l)' , 'hsl(none none none)' ] ,
23+ [ 'hsl(from hsl(180 none none) h s l)' , 'hsl(180 none none)' ] ,
2424 [ 'hsl(from hsl(none 50% none) h s l)' , 'hsl(none 50% none)' ] ,
2525 [ 'hsl(from hsl(none none none) h s l)' , 'hsl(none none none)' ] ,
2626
2727 [ 'hsl(from hwb(none 25% 25%) h s l)' , 'hsl(none 50% 50%)' ] ,
2828 [ 'hsl(from hwb(180 none 25%) h s l)' , 'color(srgb 0 0.75 0.75)' ] ,
2929 [ 'hsl(from hwb(180 25% none) h s l)' , 'color(srgb 0.25 1 1)' ] ,
3030 [ 'hsl(from hwb(none none 25%) h s l)' , 'hsl(none 100% 37.5%)' ] ,
31- [ 'hsl(from hwb(180 none none) h s l)' , 'hsl(none none none)' ] ,
31+ [ 'hsl(from hwb(180 none none) h s l)' , 'hsl(180 none none)' ] ,
3232 [ 'hsl(from hwb(none 25% none) h s l)' , 'hsl(none 100% 62.5%)' ] ,
3333 [ 'hsl(from hwb(none none none) h s l)' , 'hsl(none none none)' ] ,
3434
@@ -132,14 +132,14 @@ import { computedValue, reducePrecisionWholeValue } from '../util/serialize.mjs'
132132 [ 'lch(from hwb(180 none 25%) l c h)' , 'lch(69.91337803 42.54334477 196.45478916)' ] ,
133133 [ 'lch(from hwb(180 25% none) l c h)' , 'lch(91.18116399 49.29673753 196.65803824)' ] ,
134134 [ 'lch(from hwb(none none 25%) l c h)' , 'lch(40.61501478 86.05118759 none)' ] ,
135- [ 'lch(from hwb(180 none none) l c h)' , 'lch(none none none )' ] ,
135+ [ 'lch(from hwb(180 none none) l c h)' , 'lch(none none 196.45478916 )' ] ,
136136 [ 'lch(from hwb(none 25% none) l c h)' , 'lch(58.23109529 85.49243054 none)' ] ,
137137 [ 'lch(from hwb(none none none) l c h)' , 'lch(none none none)' ] ,
138138
139139 [ 'lch(from lch(none 20 180) l c h)' , 'lch(none 20 180)' ] ,
140- [ 'lch(from lch(20 none 180) l c h)' , 'lch(20 none none )' ] ,
140+ [ 'lch(from lch(20 none 180) l c h)' , 'lch(20 none 180 )' ] ,
141141 [ 'lch(from lch(20 20 none) l c h)' , 'lch(20 20 none)' ] ,
142- [ 'lch(from lch(none none 180) l c h)' , 'lch(none none none )' ] ,
142+ [ 'lch(from lch(none none 180) l c h)' , 'lch(none none 180 )' ] ,
143143 [ 'lch(from lch(20 none none) l c h)' , 'lch(20 none none)' ] ,
144144 [ 'lch(from lch(none 20 none) l c h)' , 'lch(none 20 none)' ] ,
145145 [ 'lch(from lch(none none none) l c h)' , 'lch(none none none)' ] ,
@@ -184,7 +184,7 @@ import { computedValue, reducePrecisionWholeValue } from '../util/serialize.mjs'
184184 [ 'oklch(from hwb(180 none 25%) l c h)' , 'oklch(0.72924735 0.12448121 194.7689599)' ] ,
185185 [ 'oklch(from hwb(180 25% none) l c h)' , 'oklch(0.91079253 0.14429702 194.91785641)' ] ,
186186 [ 'oklch(from hwb(none none 25%) l c h)' , 'oklch(0.50578216 0.20754918 none)' ] ,
187- [ 'oklch(from hwb(180 none none) l c h)' , 'oklch(none none none )' ] ,
187+ [ 'oklch(from hwb(180 none none) l c h)' , 'oklch(none none 194.7689599 )' ] ,
188188 [ 'oklch(from hwb(none 25% none) l c h)' , 'oklch(0.65951623 0.22690049 none)' ] ,
189189 [ 'oklch(from hwb(none none none) l c h)' , 'oklch(none none none)' ] ,
190190
@@ -197,9 +197,9 @@ import { computedValue, reducePrecisionWholeValue } from '../util/serialize.mjs'
197197 [ 'oklch(from lch(none none none) l c h)' , 'oklch(none none none)' ] ,
198198
199199 [ 'oklch(from oklch(none 0.2 180) l c h)' , 'oklch(none 0.2 180)' ] ,
200- [ 'oklch(from oklch(0.2 none 180) l c h)' , 'oklch(0.2 none none )' ] ,
200+ [ 'oklch(from oklch(0.2 none 180) l c h)' , 'oklch(0.2 none 180 )' ] ,
201201 [ 'oklch(from oklch(0.2 0.2 none) l c h)' , 'oklch(0.2 0.2 none)' ] ,
202- [ 'oklch(from oklch(none none 180) l c h)' , 'oklch(none none none )' ] ,
202+ [ 'oklch(from oklch(none none 180) l c h)' , 'oklch(none none 180 )' ] ,
203203 [ 'oklch(from oklch(0.2 none none) l c h)' , 'oklch(0.2 none none)' ] ,
204204 [ 'oklch(from oklch(none 0.2 none) l c h)' , 'oklch(none 0.2 none)' ] ,
205205 [ 'oklch(from oklch(none none none) l c h)' , 'oklch(none none none)' ] ,
0 commit comments