New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 655206 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 647767
Owner:
Last visit 29 days ago
Closed: Oct 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

[bug?] DevTools doesn't show distributed children inside <slot> elements when using v1 ShadowDOM API.

Reported by trusktr@gmail.com, Oct 12 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36

Steps to reproduce the problem:
1. Put some HTML content inside a parent.
2. Give the parent an open or closed shadow root containing a <slot> with no name. Create this shadow root using v1's `attachShadow` method.
3. Open DevTools.
4. Inspect the shadow root and look at the <slot> element.
5. Observe it does not show distributed children.
6. Repeat steps 1 to 4, but using v0 API and <content> instead of <slot>, then observe that we do see distributed children.

What is the expected behavior?
It should show distributed children?

What went wrong?
It doesn't. But, when using v0 API and <content> elements, we do see distributed children.

Attached are two screenshots. One shows an empty <slot> element when using v1 API, and the other shows distributed children in a <content> element when using v0 API.

Note, although the DevTools doesn't show the v1 distributed children, it still functionally works (I still see the expected result in the visual output).

Did this work before? Yes Not sure, but it works with v0 API.

Chrome version: 53.0.2785.116  Channel: stable
OS Version: OS X 10.10.2
Flash Version: Shockwave Flash 23.0 r0
 
Screen Shot 2016-10-12 at 10.14.25 AM.png
18.5 KB View Download
Screen Shot 2016-10-12 at 10.15.08 AM.png
16.9 KB View Download

Comment 1 by alph@chromium.org, Oct 12 2016

Owner: lushnikov@chromium.org
Status: Assigned (was: Unconfirmed)
Should be working in 55! Could you please take a look on Chrome Canary?
Mergedinto: 647767
Status: Duplicate (was: Assigned)

Comment 4 by trusktr@gmail.com, Oct 28 2016

Yep, it works!

Sign in to add a comment