Primary eng (and PM) emailsLink to “Intent to Deprecate” threadSummaryRemove the support of multiple shadow roots of Shadow DOM v0.Multiple shadow roots feature enables users to put more than one shadow roots on a shadow host.See this for an explainer of this feature.This is a step to deprecate/remove all Shadow DOM v0 features, in favor of Shadow DOM v1.Given that Blink now supports Shadow DOM v1 as well as Shadow DOM v0, multipleshadow roots feature has been one of the biggest causes of code complexity. Itwould be a huge win if we can remove this feature from Blink, from the DOM codehealth's perspective.Specifically:- ShadowRoot#olderShadowRoot: Will remove this from IDL.- Element#createShadowRoot() on a shadow host: Will throw an error.
Compatibility And Interoperability RiskEdge/IE: Not supportedFirefox: Not supportedSafari: Not supported
Alternative implementation suggestion for web developersNo alternative.Usage information from UseCounter0.018% for ElementCreateShadowRootMultipleIt looks the usage decreased significantly at Apr 2017.
In general non-owner lgtm with some questions in-line.On Mon, Aug 21, 2017 at 2:04 PM, Hayato Ito <hay...@chromium.org> wrote:Primary eng (and PM) emailsLink to “Intent to Deprecate” threadSummaryRemove the support of multiple shadow roots of Shadow DOM v0.Multiple shadow roots feature enables users to put more than one shadow roots on a shadow host.See this for an explainer of this feature.This is a step to deprecate/remove all Shadow DOM v0 features, in favor of Shadow DOM v1.Given that Blink now supports Shadow DOM v1 as well as Shadow DOM v0, multipleshadow roots feature has been one of the biggest causes of code complexity. Itwould be a huge win if we can remove this feature from Blink, from the DOM codehealth's perspective.Specifically:- ShadowRoot#olderShadowRoot: Will remove this from IDL.- Element#createShadowRoot() on a shadow host: Will throw an error.What's the plan for the <shadow> element? That will now be useless, right?
Compatibility And Interoperability RiskEdge/IE: Not supportedFirefox: Not supportedSafari: Not supportedThe compat risk would mostly be with Blink targeted shadow dom v0 applications using multiple roots?
What's the typical feature detection for shadow dom v0?
Did earlier versions of Polymer use multiple roots?
Alternative implementation suggestion for web developersNo alternative.Usage information from UseCounter0.018% for ElementCreateShadowRootMultipleIt looks the usage decreased significantly at Apr 2017.Is that older versions of Polymer contributing most of that?
--Rune Lillesveen
--
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/CAFpjS_1hXkp286Qqj2dq%2B3Keiux4CjFb5m%3DGJGPBjrBd0c5e0Q%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFpjS_225fUBJHGGE_QwGRR0e3-VAtjkY4mnGBfV7G%2BNcVfpQg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CALjhuifmq8KMrpoC0VFaCGdR_wSNRhhMMdi5JWgPDbz-QShsaQ%40mail.gmail.com.
What's the typical feature detection for shadow dom v0?We are using Element#createShadowRoot for tracking; https://www.chromestatus.com/metrics/feature/timeline/popularity/456.Did earlier versions of Polymer use multiple roots?Yes, as far as I remember, there was only *one* custom element which uses multiple shadow roots feature in earlier versions of Polymer.Alternative implementation suggestion for web developersNo alternative.Usage information from UseCounter0.018% for ElementCreateShadowRootMultipleIt looks the usage decreased significantly at Apr 2017.Is that older versions of Polymer contributing most of that?Possibly, but we don't have data. We guessed that it might be due to a Chrome Extension, such as AdBlock.I noticed this usage drop just today.--Rune Lillesveen
--
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/CAFpjS_3EN1FVpcAk_P8t83eL8zS4Q6nRzROwUUbF2qZg%2B4e2DQ%40mail.gmail.com.
From internal data it's interesting that this UseCounter seems to be hit exclusively on desktop platforms, it's almost 0 on Android. Any idea why? Perhaps there's some popular desktop-specific site dominating the metrics here?