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

Issue 590734 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Mar 2016
Cc:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

<slot> does nothing in <table>

Reported by tomalec...@gmail.com, Feb 29 2016

Issue description

UserAgent: 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.
 
As mentioned at https://bugs.chromium.org/p/chromium/issues/detail?id=531990#c64 it blocks 531990

Comment 2 by kochi@chromium.org, Feb 29 2016

Cc: hayato@chromium.org kochi@chromium.org
Components: -Blink Blink>WebComponents
Status: Available (was: Unconfirmed)
Status: WontFix (was: Available)
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.

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
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