rtfeldman / elm-css

Typed CSS in Elm.
https://package.elm-lang.org/packages/rtfeldman/elm-css/latest
BSD 3-Clause "New" or "Revised" License
1.23k stars 196 forks source link

backgroundImage does not allow spaces in image file name #530

Open Charles1625 opened 4 years ago

Charles1625 commented 4 years ago

I ran into this problem and then did some investigation. I think the problem is actually in Css.url which needs to put some quotes round the string supplied in the argument. Currently it is returning: { backgroundImage = Compatible, value = "url(an image.jpg)" } when it should be returning: { backgroundImage = Compatible, value = "url('an image.jpg')" }