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 <use> tag with CSS ::part selector #955

Open
Glandos opened this issue Jan 25, 2022 · 2 comments
Open

SVG <use> tag with CSS ::part selector #955

Glandos opened this issue Jan 25, 2022 · 2 comments

Comments

@Glandos
Copy link

Glandos commented Jan 25, 2022

I have an edge case with https://codepen.io/glandos/pen/XWzWgbe

In Firefox:
image
In Chromium-based browser:
image

The CSS is:

circle {
  fill: red;
}

g *::part(export) {
  fill: blue;
}

The first circle is defined in the group, the other one is via a def/use, so it is drawn within a closed shadow DOM.
Is it covered in any spec right now? It's hard to find what should be applied. Of course, I'd like to think that Firefox does the right thing because that's what I want to do 😄

@trusktr
Copy link
Contributor

trusktr commented Feb 19, 2022

For such issues, it is also a good idea to file it here:

https://github.com/webcompat/web-bugs

The people there will help ensure the differences are catalogued and reported to each browser bug tracker.

@Glandos
Copy link
Author

Glandos commented Sep 20, 2023

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