Contact emails
fut...@chromium.org, hay...@chromium.org
Spec
https://drafts.csswg.org/css-scoping/#flattening
https://html.spec.whatwg.org/multipage/scripting.html#the-slot-element
https://dom.spec.whatwg.org/#shadow-tree-slots
Tag review (not sure how relevant this is): https://github.com/w3ctag/design-reviews/issues/79
Summary
Make slot elements in shadow trees take part in the flat tree which makes them styleable as any other element. This is what has been specified for Shadow DOM, but Blink has not been following the spec here while WebKit has. This is also a pre-requisite for the implementing Incremental Shadow DOM (see the motivation section of the intent to implement below).
Link to “Intent to Implement” blink-dev discussion
https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/5s1nbytTL68
Is this feature supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?
Yes.
Risks
Interoperability and Compatibility
The interoperability risk with other browsers is if we don’t ship this. Compatibility issues would be for author content already using Shadow DOM v1 in Blink accidentally styling slot elements which currently does not have an effect, but would have when we ship this. For instance, if current content has “slot {color:red}”, it will have no effect, but it will make the color of the slot red and inherit that color down to flat tree descendants when this ships.
I have asked the Polymer team to run their tests against a Canary build with the runtime flag enabled, but I have not received any feedback yet.
Edge:Public support
Firefox:Public support
Safari: Shipped
Performance
Adding slots to the flat tree means we will generate computed style for them. This caused a regression in a microbenchmark where half of the elements in the document tree were slots. See issue 811423 which has been WontFixed.
Is this feature fully tested by web-platform-tests? Link to test suite results from wpt.fyi.
https://wpt.fyi/css/css-scoping/css-scoping-shadow-nested-slot-display-override.html
https://wpt.fyi/css/css-scoping/css-scoping-shadow-slot-display-override.html
https://wpt.fyi/css/css-scoping/css-scoping-shadow-slot-fallback.html
https://wpt.fyi/css/css-scoping/css-scoping-shadow-slot-style.html
https://wpt.fyi/css/css-scoping/css-scoping-shadow-slotted-rule.html
https://wpt.fyi/css/css-scoping/slotted-invalidation.html
https://wpt.fyi/css/css-scoping/slotted-slot.html
Entry on the feature dashboard
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACuPfeSQA6qjB2b0rGgKJ-DQQZvAqm79z0_ihxZHATj_4xkRTg%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACuPfeSQA6qjB2b0rGgKJ-DQQZvAqm79z0_ihxZHATj_4xkRTg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAAEV3pkBWEy8n-%3DXJ9Tou%2BqT5Q0CGk7DHvMABpP_ugQsyazGrw%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACuPfeSQA6qjB2b0rGgKJ-DQQZvAqm79z0_ihxZHATj_4xkRTg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACuPfeSQA6qjB2b0rGgKJ-DQQZvAqm79z0_ihxZHATj_4xkRTg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAAEV3pkBWEy8n-%3DXJ9Tou%2BqT5Q0CGk7DHvMABpP_ugQsyazGrw%40mail.gmail.com.
--Hayato
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACuPfeSQA6qjB2b0rGgKJ-DQQZvAqm79z0_ihxZHATj_4xkRTg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAAEV3pkBWEy8n-%3DXJ9Tou%2BqT5Q0CGk7DHvMABpP_ugQsyazGrw%40mail.gmail.com.
--Hayato
--Hayato
https://dom.spec.whatwg.org/#shadow-tree-slots> A shadow tree contains zero or more elements that are slots.It results <div><slot name=foo style="font-weight:bold"><span slot="foo">foo</span></slot>baz</div> as light tree.Is it defined slots behavior outside shadow root?
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACuPfeSQA6qjB2b0rGgKJ-DQQZvAqm79z0_ihxZHATj_4xkRTg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAAEV3pkBWEy8n-%3DXJ9Tou%2BqT5Q0CGk7DHvMABpP_ugQsyazGrw%40mail.gmail.com.
--Hayato
--Hayato
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACuPfeSQA6qjB2b0rGgKJ-DQQZvAqm79z0_ihxZHATj_4xkRTg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAAEV3pkBWEy8n-%3DXJ9Tou%2BqT5Q0CGk7DHvMABpP_ugQsyazGrw%40mail.gmail.com.
--Hayato
--Hayato--Hayato--Hayato
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACuPfeSQA6qjB2b0rGgKJ-DQQZvAqm79z0_ihxZHATj_4xkRTg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAAEV3pkBWEy8n-%3DXJ9Tou%2BqT5Q0CGk7DHvMABpP_ugQsyazGrw%40mail.gmail.com.
--Hayato
--Hayato--Hayato--Hayato
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACuPfeSQA6qjB2b0rGgKJ-DQQZvAqm79z0_ihxZHATj_4xkRTg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAAEV3pkBWEy8n-%3DXJ9Tou%2BqT5Q0CGk7DHvMABpP_ugQsyazGrw%40mail.gmail.com.
--Hayato
----Hayato--Hayato--HayatoHayato--Hayato
+1 to me.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACuPfeSQA6qjB2b0rGgKJ-DQQZvAqm79z0_ihxZHATj_4xkRTg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAAEV3pkBWEy8n-%3DXJ9Tou%2BqT5Q0CGk7DHvMABpP_ugQsyazGrw%40mail.gmail.com.
--Hayato
----Hayato--Hayato--HayatoHayato--Hayato
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAAEV3pmOL1-vyeRTzsGKE7Tn0eRVOm3Djmz0rMUyZ%3DdmFqqRrQ%40mail.gmail.com.
+1 to me.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACuPfeSQA6qjB2b0rGgKJ-DQQZvAqm79z0_ihxZHATj_4xkRTg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAAEV3pkBWEy8n-%3DXJ9Tou%2BqT5Q0CGk7DHvMABpP_ugQsyazGrw%40mail.gmail.com.
--Hayato
----Hayato--Hayato--HayatoHayato--Hayato
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAAEV3pmOL1-vyeRTzsGKE7Tn0eRVOm3Djmz0rMUyZ%3DdmFqqRrQ%40mail.gmail.com.--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
----TAMURA Kent
Software Engineer, Google
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAGH7WqHHh%3DTDgpQR_%3DJN%3DquF-8encC%3DJmNoR1tL0pWdrDoBfZg%40mail.gmail.com.
+1 to me.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
----Hayato--Hayato--HayatoHayato--Hayato
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAARdPYdHbRRmw%3DovGsET5ws3ygckgU5pfF1gr%3DGm4VOSVn7tdw%40mail.gmail.com.
LGTM2wpt.fyi does not yet run pre-stable browsers, but I ran the listed test in Safari Technology Preview (PR) and there are just two failures:/css/css-scoping/css-scoping-shadow-slotted-rule.htmlFAIL [Parent]
/css/css-scoping/slotted-slot.htmlFAIL Check that ::slotted does not match slot elements
I don't understand the css-scoping-shadow-slotted-rule.html failure as they look identical to me, but the other is 'assert_equals: expected "rgb(0, 128, 0)" but got "rgb(255, 0, 0)"'.
If all other tests pass and these differences are understood, then I think we'll be on a good path to interop!