Styling default slot content with ::slotted |
||||||||
Issue descriptionPlease see https://github.com/w3c/webcomponents/issues/631. `::slotted` should consider slot's children too.
,
Apr 4 2017
,
Oct 17 2017
Making this avaialble to someone in Blink>CSS.
,
Oct 17 2017
FYI, in the previous attempt I tried to apply fallback contents in document (i.e. slot element is in document tree), but now you don't have to. So the code should be simpler.
,
Oct 17 2017
,
Oct 30 2017
,
Nov 27 2017
Looks approachable, especially with kochi's WIP patch.
,
Dec 5 2017
Re comment#4 the discussion on https://github.com/w3c/webcomponents/issues/631 may sound slot's children in document tree should also return its fallback contents, but the latest HTML spec says: https://html.spec.whatwg.org/multipage/scripting.html#dom-slot-assignednodes The assignedNodes(options) method, when invoked, must run these steps: 1. If the value of options's flatten member is false, then return this element's assigned nodes. 2. Return the result of finding flattened slotables with this element. So "2." has to be applied for assignedNodes({flatten: true}) case, and "finding flattened slotables" algorithm says: https://dom.spec.whatwg.org/#find-flattened-slotables To find flattened slotables for a given slot slot, run these steps: 1. Let result be an empty list. 2. If slot’s root is not a shadow root, then return result. ... So "2." applies in the document tree, thus slot.assignedNodes({flatten:true}) returns an empty array when the slot is in a document tree.
,
Dec 6 2017
,
Dec 6
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Dec 10
|
||||||||
►
Sign in to add a comment |
||||||||
Comment 1 by kochi@chromium.org
, Mar 27 2017