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

Declarative CSS Modules and Declarative Shadow DOM adoptedstylesheets attribute #1000

Open
1 task done
KurtCattiSchmidt opened this issue Oct 1, 2024 · 0 comments
Open
1 task done
Assignees
Labels
Mode: breakout Work done during a time-limited breakout session Review type: CG early review An early review of general direction from a Community Group Topic: components Topic: CSS Venue: WHATWG

Comments

@KurtCattiSchmidt
Copy link

こんにちは TAG-さん!

I'm requesting an early TAG design review of Declarative CSS Modules and the Declarative Shadow DOM adoptedstylesheets attribute.

When developing web components, web authors often encounter challenges with distributing global styles into shadow roots and sharing styles across different shadow roots. Declarative shadow DOM (DSD) enables creation of shadow DOM without JS, but adding styles to DSD requires the developer to either use JS to put a shared stylesheet into adoptedStyleSheets, or to duplicate the styles in a <style> element for each component instance.

We propose an enhancement to CSS module scripts that would allow developers to create CSS module scripts declaratively without a network request, and apply them to DSDs without the use of JS.

Further details:

@jyasskin jyasskin added Venue: WHATWG Review type: CG early review An early review of general direction from a Community Group Topic: CSS Topic: components Mode: breakout Work done during a time-limited breakout session and removed Progress: untriaged labels Oct 2, 2024
@LeaVerou LeaVerou self-assigned this Oct 8, 2024
@torgo torgo added this to the 2024-10-14-week milestone Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mode: breakout Work done during a time-limited breakout session Review type: CG early review An early review of general direction from a Community Group Topic: components Topic: CSS Venue: WHATWG
Projects
None yet
Development

No branches or pull requests

6 participants