To repro: 1) Turn on shadow DOM inspecton 2) Go to http://jsfiddle.net/dglazkov/b8QXN/ 3) Inspect the "Result" pane and look for shadow roots You'll find that only the first shadow root is showing.
it seems elements having no children (except text) does not show shadow roots, since they will not have any triangle marker by default. I'm preparing a patch for this. This bug is very annoying when debugging ShadowDOM related stuffs, so I would like to fix as soon as possible.
Ah, an element having no children is wrong, an element having only text is correct.
Created attachment 165991 [details] Patch
Created attachment 167668 [details] Patch
Comment on attachment 167668 [details] Patch Attachment 167668 [details] did not pass mac-ews (mac): Output: http://queues.webkit.org/results/14228460 New failing tests: inspector/elements/shadow-dom-modify-chardata.html inspector/elements/edit-dom-actions.html inspector/elements/elements-panel-search.html inspector/elements/shadow-root.html inspector/elements/elements-panel-reload-assert.html inspector/console/console-format-collections.html
Comment on attachment 167668 [details] Patch Attachment 167668 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/14221516 New failing tests: inspector/elements/elements-panel-search.html inspector/elements/shadow-dom-modify-chardata.html inspector/elements/elements-panel-reload-assert.html inspector/elements/shadow-root.html inspector/elements/edit-dom-actions.html
Ohya
Comment on attachment 167668 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=167668&action=review > Source/WebCore/inspector/front-end/DOMAgent.js:70 > + if (payload.shadowRoots && WebInspector.experimentsSettings.showShadowDOM.isEnabled()) { Experiments? It sounds like a poor merge.
Created attachment 168187 [details] Patch
Comment on attachment 168187 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=168187&action=review > LayoutTests/inspector/elements/shadow-root.html:21 > + // For insurance. We never do such things. Let the test timeout instead.
Created attachment 168198 [details] Patch for landing
Comment on attachment 168198 [details] Patch for landing Clearing flags on attachment: 168198 Committed r131046: <http://trac.webkit.org/changeset/131046>
All reviewed patches have been landed. Closing bug.