Skip to content

Commit

Permalink
Fixed tests for color interpolation in conic-gradient()
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianZ committed Jan 1, 2024
1 parent 8f9be50 commit 180d017
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tests/css-images-4.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default {
'linear-gradient(in lch to right, #A37, #595)',
'linear-gradient(in lab to right, #A37, #595)',
'linear-gradient(in srgb to right, #A37, #595)',
'linear-gradient(in Oklab to right, #A37, #595)',
'linear-gradient(in oklab to right, #A37, #595)',
'linear-gradient(in oklch to right, #A37, #595)',
'linear-gradient(in srgb-linear to right, #A37, #595)',
'linear-gradient(in xyz to right, #A37, #595)',
Expand Down Expand Up @@ -58,7 +58,7 @@ export default {
'radial-gradient(farthest-side at left bottom in lab, color(display-p3 0.918 0.2 0.161), #081)',
'radial-gradient(in lab farthest-side at left bottom, color(display-p3 0.918 0.2 0.161), #081)',
'radial-gradient(in srgb farthest-side at left bottom, color(display-p3 0.918 0.2 0.161), #081)',
'radial-gradient(in Oklab farthest-side at left bottom, color(display-p3 0.918 0.2 0.161), #081)',
'radial-gradient(in oklab farthest-side at left bottom, color(display-p3 0.918 0.2 0.161), #081)',
'radial-gradient(in hsl shorter hue at left bottom, color(display-p3 0.918 0.2 0.161), #081)',
],
},
Expand All @@ -85,10 +85,12 @@ export default {
mdn: 'conic-gradient'
},
tests: [
'conic-gradient(#f06 0deg in lab, gold 1turn)',
'conic-gradient(in lab #f06 0deg, gold 1turn);',
'conic-gradient(in lab from 45deg, white, black, white))',
'conic-gradient(in hsl shorter hue from 45deg, white, black, white))',
'conic-gradient(in lab, #f06, gold)',
'conic-gradient(in lab, #f06 0deg, gold 1turn)',
'conic-gradient(from 45deg in lch, white, black, white)',
'conic-gradient(in srgb from 45deg, white, black, white)',
'conic-gradient(in oklab at top left, white, black, white)',
'conic-gradient(in hsl shorter hue from 45deg, white, black, white)',
],
},
'repeating-conic-gradient()': {
Expand Down

0 comments on commit 180d017

Please sign in to comment.