css-property-parser
css-property-parser copied to clipboard
Error with gradient when expandShorthandProperty is used
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"
+1
Fails with:
expandToLonghand('background', 'linear-gradient(24deg, red, blue)')