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

Problem with flattening assigned nodes #115

Closed
orstavik opened this issue Sep 28, 2018 · 1 comment
Closed

Problem with flattening assigned nodes #115

orstavik opened this issue Sep 28, 2018 · 1 comment

Comments

@orstavik
Copy link

There are some problems with flattening assigned nodes of slot elements.

I've set up the following example to illustrate the problem:
slotFallbackCSS.txt
or see here:
https://codepen.io/orstavik/pen/dgyWMM

The technical problems are:

  1. You write a custom element "A" that uses another custom element "InsideA". "InsideA" has a slot, and "A" places its own slot element there. "InsideA" also has default content that will be used if it is not slotted any content. If element "A" wishes to allow its users to slot in content via itself to "InsideA", how can "A" achieve this?
  2. When content is shown from within the slot of "InsideA", the css rules from "A" seems to trump the css rules of "InsideA".
@annevk
Copy link
Member

annevk commented Sep 26, 2019

Sorry I missed this, but this is better raised at w3c/webcomponents or whatwg/dom.

@annevk annevk closed this as completed Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants