mahirshah / css-property-parser

Validate css properties and expand shorthand css properties
MIT License
60 stars 6 forks source link

Error with gradient when expandShorthandProperty is used #25

Open everget opened 6 years ago

everget commented 6 years ago
Error: 'Error parsing shorthand property background: linear-gradient(90deg,transparent 0,#7db9e8). 
invalid syntax at line 1 col 17:

  linear-gradient(90deg,transparent 0,#7db9e8)
                  ^
Unexpected "9"
guivr commented 2 years ago

+1

Fails with: expandToLonghand('background', 'linear-gradient(24deg, red, blue)')