rafaelcaricio / gradient-parser

Parse CSS3 gradient definitions and build an AST object.
MIT License
62 stars 10 forks source link

Doesn't like new linear direction syntax... #2

Open davidosullivan opened 9 years ago

davidosullivan commented 9 years ago

this doesn't parse either...

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

davidosullivan commented 9 years ago

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,