Skip to content

fix(convertColors): use currentColor instead of currentcolor #2137

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

Merged
merged 1 commit into from
May 22, 2025

Conversation

SethFalco
Copy link
Member

Fixes an issue where we convert currentColor to lowercase, so it becomes currentcolor (not spec compliant) and breaks in specific SVG previewers.

The impact was low as many clients supported both currentColor and currentcolor, however, what we had before was incorrect.

Related

@SethFalco SethFalco merged commit feb9b5e into svg:main May 22, 2025
14 checks passed
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.

[BUG] In 4.0.0-rc.4 (Possibly earlier versions too), stroke="currentColor" case is set incorrectly and breaks windows SVG explorer codecs.
1 participant