Skip to content

Conversation

@kraftbj
Copy link

@kraftbj kraftbj commented May 12, 2025

Fixes #340

The url field within CSS accepts data globs that will contain spaces and single-quotes very often. To keep things simple, this proposes to determine if an URL begins with data. If it does, allow for spaces and single-quotes and wrap the URL in double-quotes on return.

This could be expanded to detect if a space or single-quote is used and double-quote in those cases as well, though this PR attempts to only address the broken situation with as few changes to existing, working values.

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

Successfully merging this pull request may close these issues.

CSS Generation of SVG in URL field requires quotes

1 participant