Hi Guys,
I was doing some jank busting, and noticed that the hide element shortcut in Dev Tools (press 'h' to set visibility:hidden on an element),
doesn't work within shadow DOM. This being because the style rule applied by the shortcut doesn't reach into the shadow DOM.
(Same thing in Chrome Canary.)
I'm working around this by applying the following style rule to my page:
html /deep/ .__web-inspector-hide-shortcut__,
html /deep/ .__web-inspector-hide-shortcut__ *,
.__web-inspector-hide-shortcut__ /deep/ * {
visibility: hidden !important;
}
With this in place it works, but I'd rather the tools just worked by themselves.
Is there something I'm missing? Or is such a work around necessary?
Cheers, Johannes.