Skip to content

fix: cssrewrite corrupts quoted data URIs with parentheses - #571

Open
hasansezertasan wants to merge 1 commit into
miracle2k:masterfrom
hasansezertasan:fix/cssrewrite-data-uri
Open

hasansezertasan wants to merge 1 commit into
miracle2k:masterfrom
hasansezertasan:fix/cssrewrite-data-uri

Conversation

@hasansezertasan

Copy link
Copy Markdown

The url() regex stopped at the first closing paren, so a quoted SVG data URI containing rgba(...) got truncated and the CSS mangled. Added alternatives to match a fully quoted value, so parens inside quotes no longer end the match. Added a regression test. Fixes #508.

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.

cssrewrite breaks SVG Data URI

1 participant