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

[@sheet] Shadow DOM stylesheet inheritance #948

Open
dead-claudia opened this issue Jan 31, 2025 · 1 comment
Open

[@sheet] Shadow DOM stylesheet inheritance #948

dead-claudia opened this issue Jan 31, 2025 · 1 comment
Labels

Comments

@dead-claudia
Copy link

Given a hierarchy of global root G > a shadow root A > shadow root B, if a stylesheet with @sheet foo is added to G and a different @sheet foo added to A, how should they compose as adopted by B?

Related: #900, #933, #935, #937, #938 (about half of the existing @sheet-related issues)

This issue leads me more in favor of an HTML-based solution, FWIW.

@dead-claudia
Copy link
Author

My suggested resolution is this: do not inherit. Instead, use adopted stylesheets and/or shadowrootstyleorder="outer adopted"/styleOrder: "outer adopted" from w3c/csswg-drafts#11547 to expose them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants