Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prefix CSS URL-property with SVG-filename for Firefox #6

Open
flobacher opened this issue Jan 27, 2017 · 0 comments
Open

prefix CSS URL-property with SVG-filename for Firefox #6

flobacher opened this issue Jan 27, 2017 · 0 comments

Comments

@flobacher
Copy link
Owner

Check if external stylesheet contains a styledef with an URL e.g.:

.className{
    fill: url(#bg-arrow--gradient-yellow-linear-gradient-1);
}

Since this is most likely from the injected svg make sure to not suffix the definition when injecting it, inject it only once for all browsers except firefox. Firefox only needs an absolute URL, so best is to use the svg-filename or the one of the spritesheet...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant