Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
no_wizard
58 days ago
|
parent
|
context
|
favorite
| on:
Lit: a library for building fast, lightweight web ...
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
jfagnani
58 days 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.
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Same thing with how css is handled, especially since we have @layer and @scoped now