Skip to content

test(slot): test adding to a non-shadow list inside of a shadow DOM component. - #1197

Merged
adamdbradley merged 8 commits into
masterfrom
test/slotList
Nov 13, 2019
Merged

adamdbradley merged 8 commits into
masterfrom
test/slotList

Conversation

@kensodemann

Copy link
Copy Markdown
Contributor

Do Not Merge

This PR contains a failing test that duplicates the situation show with #897

This could be used as a staring point to fixing it.

NOTES:

the base issue appears to be with the list not using shadow DOM. The tree looks like this:

<slot-list-light-root>
  <slot-dynamic-list>
    <slot-light-list>
    </slot-light-list>
  </slot-dynamic-list>
</slot-list-light-root>

The slot-dynamic-list component uses shadow DOM.
The slot-light-list uses light DOM.

If you change slot-dynamic-list to light DOM (and adjust the DOM queries in the test accordingly) this will work.

Similarly, if you leave slot-dynamic-list using shadow DOM and change slot-light-list to use shadow DOM (and adjust the DOM queries in the test accordingly) this will work.

It is only if the outer item uses shadow DOM and the inner list item uses light DOM that the issue raises its ugly head.

@adamdbradley
adamdbradley merged commit b8f22da into master Nov 13, 2019
@adamdbradley
adamdbradley deleted the test/slotList branch November 13, 2019 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants