Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
no_wizard
8mo ago
0 comments
Share
In my mind this has always made no sense to me, why slots aren’t independent of the shadow dom.
Same thing with how css is handled, especially since we have @layer and @scoped now
0 comments
default
newest
oldest
jfagnani
8mo ago
It's not possible to make slots work without a separate tree like shadow DOM. The browser can't tell what the container for a slot is vs what content should project into it.
j
/
k
navigate · click thread line to collapse