<slot> does nothing in <table>
Reported by
tomalec...@gmail.com,
Feb 29 2016
|
|||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2663.0 Safari/537.36 Steps to reproduce the problem: 1. Create an element with `<tr slot="a">` inside, 2. Attach (open) shadow DOM to the element, 3. In shadow DOM create a `<table>` element with `<slot name="a">` inside http://jsbin.com/naxuqoj/1/edit?html,js,output What is the expected behavior? `<tr>` should be distributed, and rendered inside `<table>` What went wrong? `<tr>` is not distributed, and empty `<table>` is rendered Did this work before? N/A Chrome version: 51.0.2663.0 Channel: canary OS Version: 8.1 Flash Version: Shockwave Flash 21.0 r0 When I change `<table>` AND `<tr>` to `<div>`s it works.
,
Feb 29 2016
,
Mar 1 2016
Does it work for createShadowRoot() and <content>? I do not think Blink are supporting this, as of now, AFAIR. See also https://www.w3.org/Bugs/Public/show_bug.cgi?id=28353. Unless specified explicitly, it "should not work" in default.
,
Mar 1 2016
Is it somehow stated in spec? Flattening algorithm seems to have no exception for table/tr https://w3c.github.io/webcomponents/spec/shadow/#flattening-algorithm Plus, as I understood from examples in spec and discussion at https://github.com/w3c/webcomponents/issues/308#issuecomment-136903096 in flat tree it should behave like slot is replace with distributed nodes
,
Mar 2 2016
The point is that the flat tree is used only for resolving CSS inheritance, roughly. It does not *replace* a document tree. I am aware that this is an unsatisfying situation. Blink is not ready to resolve this issue until the spec is resolved. See https://github.com/w3c/webcomponents/issues/404 also, which I've filed. |
|||
►
Sign in to add a comment |
|||
Comment 1 by tomalec...@gmail.com
, Feb 29 2016