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

[css-scoping] Explanation required : Why only direct children of the shadow host can be slotted? #1530

Closed
praveenpuglia opened this issue Jun 15, 2017 · 1 comment
Labels
css-scoping-1 Current Work

Comments

@praveenpuglia
Copy link
Contributor

praveenpuglia commented Jun 15, 2017

The Example 4 here says that

only direct children of a shadow host can be assigned to a slot.

I couldn't find any explanation as to why it's restricted to only direct children. Should it be mentioned in the spec somewhere as a note or a reference link which expands on it?

Or please tell me if I missed something totally obvious.

@fantasai fantasai added the css-scoping-1 Current Work label Jun 15, 2017
@tabatkins
Copy link
Member

That's just part of how Shadow DOM is defined, over in the DOM spec. CSS doesn't impose this or care about it, I just called it out in the example to be informative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-scoping-1 Current Work
Projects
None yet
Development

No branches or pull requests

3 participants