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

svg data url should specify utf8 charset #20

Open
Garrett-Bodley opened this issue Oct 26, 2021 · 1 comment
Open

svg data url should specify utf8 charset #20

Garrett-Bodley opened this issue Oct 26, 2021 · 1 comment

Comments

@Garrett-Bodley
Copy link

The auto-generated CSS does not specify a utf-8 charset in the encoding parameters. This lead prevented Netlify from rendering the pattern when pushed to production. Funnily enough, the provided data URL worked fine on my local machine, but things broke when I pushed to production.

Provided CSS:

url(data:image/svg+xml,<svg ...svg stuff here... />)

The data URL should be as follows:

data:image/svg+xml;utf8,<svg...stuff... />

In general, I think it would be helpful to have a tutorial/how-to section on the site to help devs with less experience (i.e. others like me) use the patterns in their own projects. Would be happy to help write something if that would be of use!

@Thomashighbaugh
Copy link

Thank you for this, saved me multiple times now!

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

No branches or pull requests

2 participants