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

warnings from diff-dom regarding calc values in svg #134

Open
phun-ky opened this issue Dec 6, 2023 · 1 comment
Open

warnings from diff-dom regarding calc values in svg #134

phun-ky opened this issue Dec 6, 2023 · 1 comment

Comments

@phun-ky
Copy link

phun-ky commented Dec 6, 2023

I'm getting these warnings in my console from diff-dom:

image

Due to this svg:

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500"><defs><mask id="a"><rect width="100%" height="100%" fill="#fff"></rect><circle cx="50%" cy="50%" r="127"></circle></mask></defs><circle cx="calc(50% + 35px)" cy="calc(50% - 35px)" r="calc(125px + 65px)" fill="rgba(151, 70, 163, 0.5)" mask="url(#a)"></circle><circle cx="calc(50% + -0px)" cy="calc(50% - 50px)" r="calc(125px + 65px)" fill="rgba(0,81,154,0.5)" mask="url(#a)"></circle><circle cx="calc(50% + -35px)" cy="calc(50% - 35px)" r="calc(125px + 65px)" fill="rgba(0,151,208,0.5)" mask="url(#a)"></circle><circle cx="calc(50% + -50px)" cy="calc(50% + 0px)" r="calc(125px + 65px)" fill="rgba(0, 146, 65, 0.5)" mask="url(#a)"></circle><circle cx="calc(50% + -35px)" cy="calc(50% + 35px)" r="calc(125px + 65px)" fill="rgba(244,212,3,0.5)" mask="url(#a)"></circle><circle cx="calc(50% + 0px)" cy="calc(50% + 50px)" r="calc(125px + 65px)" fill="rgba(224,108,25,0.5)" mask="url(#a)"></circle><circle cx="calc(50% + 35px)" cy="calc(50% + 35px)" r="calc(125px + 65px)" fill="rgba(203,24,30,0.5)" mask="url(#a)"></circle><circle cx="calc(50% + 50px)" cy="calc(50% + 0px)" r="calc(125px + 65px)" fill="rgba(219, 112, 147, 0.5)" mask="url(#a)"></circle><circle cx="50%" cy="50%" r="125" fill="#fff" mask="url(#a)"></circle></svg>

You can see it on https://moebius.wtf

@johanneswilm
Copy link
Member

@phun-ky Can you explain a bit how this is related to diff-dom? Isn't it just the browser complaining about unusual attribute 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

No branches or pull requests

2 participants