Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

Data URI svg is not supported on custom properties #55

Open
nex3 opened this issue Apr 11, 2018 · 0 comments
Open

Data URI svg is not supported on custom properties #55

nex3 opened this issue Apr 11, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@nex3
Copy link
Contributor

nex3 commented Apr 11, 2018

From sass/sass#2494:

test {
  --background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><circle cx="100" cy="100" r="100"/></svg>');
  background-image: var(--background-image);
}

Fails with:

Error: Invalid CSS after "...kground-image: ": expected "}", was "url('data:image..."
        on line 2 of style.scss
  Use --trace for backtrace.

Assigning string to a variable and then url($icon) works, which is quite odd.

Ruby Sass 3.5.6

@nex3 nex3 added the bug Something isn't working label Apr 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant