Custom element slotted children not rendered in <details>
Reported by
jordan.r...@banno.com,
Apr 6 2017
|
||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.110 Safari/537.36 Steps to reproduce the problem: 1. Open the attached file in the latest Chromium or Chrome Canary OR create an HTML document with a custom element that uses a <slot> element within a <details> element. 2. Observe that slotted children are not rendered. What is the expected behavior? Slotted children should be rendered within the <details> element. What went wrong? Slotted children are not rendered within the <details> element, although the distributed children are shown (as e.g. "↪ <div>") in the elements panel. See the attached screenshots, which show how the elements are rendered in Chrome Canary 59 and Safari Technology Preview 10.2. The latter renders the elements as expected. I've also created a CodePen demo: http://codepen.io/jrunning/pen/peBMed Did this work before? N/A Does this work in other browsers? Yes Chrome version: 59.0.3064.0 Channel: canary OS Version: OS X 10.12.4 Flash Version:
,
Apr 6 2017
,
Apr 7 2017
,
Apr 7 2017
Good catch. We have to update the implementations of <details>/<summary>, which are now implemented by Shadow DOM v0 features internally. They do not work with <slot> nicely.
,
May 26 2017
yuzus@, could you have a chance to take a look? kochi@, please help yuzus@.
,
Jul 11 2017
,
Jan 26 2018
Assign back to me.
,
Jan 26 2018
With the recent conversion of UA shadow from V0 to V1, the latest canary should catch up with Safari's look. |
||||||||
►
Sign in to add a comment |
||||||||
Comment 1 by jordan.r...@banno.com
, Apr 6 2017975 bytes
975 bytes View Download