alfa icon indicating copy to clipboard operation
alfa copied to clipboard

Support linear gradient with multi-position color stops

Open zsofitoth opened this issue 3 years ago • 0 comments

We should extend the parser to support this case:

background: linear-gradient(to right, white 30%, orange 60% 70%, blue 70%);

Visually, this looks like a gradual transition from white to orange between 30% and 60%, while between 0 and 30% the color is white, after 60% it's orange and after 70% it's blue.

See specification on color stop lists.

zsofitoth avatar Dec 06 '21 09:12 zsofitoth