I parse CSS background-image
, which support multi Value, which may be none
and function (e url(
> and linear-gradient(
>), with multi comma-separated debate? 我看不出这样做是正确的。 测试案例如下:
linear-gradient(top left, red, rgba(255,0,0,0))
, url(a)
, image(url(b.svg), b.png 150dpi, b.gif , rgba(0,0,255,0.5))
, none
Which I d want to convert to the following array:
[
"linear-gradient(top left, red, rgba(255,0,0,0))"
, "url(a)"
, "image(url(b.svg), b.png 150dpi, b.gif , rgba(0,0,255,0.5))"
, "none"
]