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

Issue 715915 link

Starred by 0 users

Issue metadata

Status: WontFix
Owner:
Last visit > 30 days ago
Closed: Jun 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Distributed slot fallback content from Document tree is not counted properly

Project Member Reported by kochi@chromium.org, Apr 27 2017

Issue description

When slot fallback content is distributed from Document tree
to a shadow tree, getting distributed content via
slot.assignedNodes({flatten: true}) should return the content
distributed from Document.

E.g. in Document
<div>
  <#shadow-root>
     <slot></slot>
  </#shadow-root>
  <slot>
    <div>Fallback content</div>
  </slot>
</div>

POC online: http://jsbin.com/yiwaxaqexo/edit?html,js,console,output

 

Comment 1 by kochi@chromium.org, Apr 27 2017

With the example http://jsbin.com/yiwaxaqexo/edit?html,js,console,output

Expectation for slot.assignedNodes() would return [<slot (in document)>],
and slot.assignedNodes({flatten: true}) would return [<div>Fallback content</div>].

Safari TP works as expected, Chrome returns empty array for the latter,
as of today (M58).

Comment 2 by hayato@chromium.org, Apr 27 2017

Could you write web platform tests?
If we find any interoperable issues between UAs, it would be nice to have a test for that.

Comment 3 by kochi@chromium.org, Apr 28 2017

Created a pull request https://github.com/w3c/web-platform-tests/pull/5726

Comment 4 by hayato@chromium.org, Apr 28 2017

Owner: kochi@chromium.org
Status: Assigned (was: Available)

Comment 5 by hayato@chromium.org, Apr 28 2017

Thank you for making PR. I have merged it.

Comment 6 by kochi@chromium.org, May 2 2017

The CL is ready but I'm waiting for upstream WPT to be imported.
https://codereview.chromium.org/2842263004/

Comment 7 by kochi@chromium.org, Jun 9 2017

Status: WontFix (was: Assigned)
With the recent spec change, slots in non-shadow tree no longer need
to treat fallback contents in the same way as slots in shadow tree.
https://github.com/whatwg/dom/pull/459


Comment 8 by kochi@chromium.org, Aug 30 2017

Cc: elkurin@google.com
cc elkurin@ FYI

Sign in to add a comment