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 stroke-opacity conflicts with unocss attributify #2803

Closed
4 tasks done
CatsJuice opened this issue Jun 28, 2023 · 1 comment · Fixed by #2804
Closed
4 tasks done

SVG stroke-opacity conflicts with unocss attributify #2803

CatsJuice opened this issue Jun 28, 2023 · 1 comment · Fixed by #2804

Comments

@CatsJuice
Copy link
Contributor

UnoCSS version

0.52.2

Describe the bug

In SVG set stroke-opacity="0.5" means stroke-opacity: 50%, but it will be parsed to stroke-opacity: 0.005% in unocss.

I found that this issue is related to #2104

Reproduction

System Info

No response

Validations

@CatsJuice
Copy link
Contributor Author

I can solve this temporarily by adding an ignored attribute in this PR.

But perhaps there are more similar attributes. @antfu I wonder if there is a better solution to handle this type of situation.

Is there a pre-existing discussion that I've overlooked?

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 a pull request may close this issue.

1 participant