gradient-parser icon indicating copy to clipboard operation
gradient-parser copied to clipboard

Doesn't like new linear direction syntax...

Open davidosullivan opened this issue 10 years ago • 1 comments

this doesn't parse either...

repeating-linear-gradient(to bottom right,rgb(254, 158, 150) 0%,rgb(172, 79, 115) 100%)

davidosullivan avatar Feb 07 '15 21:02 davidosullivan

fixed this one by changing sideOrCorner: /^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,

to

sideOrCorner: /^to (left (top|bottom)|right (top|bottom)|top (right|left)|bottom (right|left)|left|right|top|bottom)/i,

davidosullivan avatar Feb 07 '15 22:02 davidosullivan