Skip to content

Commit 20ade2e

Browse files
committed
add a note about css shadow parts
1 parent 272befa commit 20ade2e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

text/0000-style-properties.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,4 +293,6 @@ Aside from being an implementation nightmare, I think the proposal in this RFC i
293293

294294
## Unresolved questions
295295

296-
I'm not a big design system user, so I would very much like to get feedback from people who are. Would this solve your problems? What have we missed?
296+
I'm not a big design system user, so I would very much like to get feedback from people who are. Would this solve your problems? What have we missed?
297+
298+
In particular, this takes a different approach from [CSS Shadow Parts](https://drafts.csswg.org/css-shadow-parts-1/), which allows a component consumer to target selected elements, but to then apply arbitrary styles to those elements. I'm personally surprised about that, given the degree to which web component advocates prioritise encapsulation — it seems like a footgun, honestly — but I'd be eager to learn from people with relevant experience. (Note that we'd still be able to emulate that capability with `:global` — really the question is whether it needs to be first-class.)

0 commit comments

Comments
 (0)