Measure the usage of /deep/ in static profile |
|||||
Issue descriptionBackground: https://github.com/w3c/webcomponents/issues/78 (Support `>>>` combinator in static profile) https://github.com/whatwg/dom/issues/463 (Match querySelector for pseudo elements (::slotted())) For Shadow DOM V0 we allow '/deep/' and '::shadow' in querySelector() (aka CSS selector static profile), and if the experimental flag is enabled, we allow '>>>' for Shadow DOM V1. It would be worth measuring how popularly '/deep/' and '::shadow' are used to determine whether we should promote `>>>` or not. As of this writing, the usage of `>>>` is ~zero. https://www.chromestatus.com/metrics/feature/timeline/popularity/1691 This is not the proof that it is not useful, but as it is under the experimental flag.
,
Oct 5 2017
,
Oct 5 2017
,
Oct 5 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/9055c1faea785877d31113dc9d2f3d978fe16457 commit 9055c1faea785877d31113dc9d2f3d978fe16457 Author: Takayoshi Kochi <kochi@chromium.org> Date: Thu Oct 05 14:28:18 2017 Add use counter for /deep/ and ::shadow usage in querySelector() Bug: 771111 Change-Id: I7f791cb0c5c32d92adf1e05c6719a37fca871475 Reviewed-on: https://chromium-review.googlesource.com/697190 Commit-Queue: Takayoshi Kochi <kochi@chromium.org> Reviewed-by: Hayato Ito <hayato@chromium.org> Reviewed-by: nainar <nainar@chromium.org> Cr-Commit-Position: refs/heads/master@{#506722} [modify] https://crrev.com/9055c1faea785877d31113dc9d2f3d978fe16457/third_party/WebKit/Source/core/css/SelectorChecker.cpp [modify] https://crrev.com/9055c1faea785877d31113dc9d2f3d978fe16457/third_party/WebKit/public/platform/web_feature.mojom [modify] https://crrev.com/9055c1faea785877d31113dc9d2f3d978fe16457/tools/metrics/histograms/enums.xml
,
Nov 10 2017
,
Nov 22 2017
The counters started to appear, will increase when M63 goes stable. https://www.chromestatus.com/metrics/feature/timeline/popularity/2163 ~0.04% https://www.chromestatus.com/metrics/feature/timeline/popularity/2164 ~0.08% Usecounter for '>>>' is still ~0 https://www.chromestatus.com/metrics/feature/timeline/popularity/1691 Cf. current shadow usage: ElementAttachShadow (V1) https://www.chromestatus.com/metrics/feature/timeline/popularity/804 ~0.05% ElementCreateShadowRoot (V0) https://www.chromestatus.com/metrics/feature/timeline/popularity/456 ~9.5% |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by kochi@chromium.org
, Oct 3 2017