Is there a way to inspect shadow dom elements in Firefox like you can do with the Chrome dev tools?
相关问题
- Replace image attributes for lazyload plugin on im
- DOMContentLoaded not firing after navigation but f
- is it normal for image inputs to be omitted from t
- Shadow DOM CSS Styling from outside is not working
- PHP Getting XPath of a DOMNode
相关文章
- Access shadow DOM properties (polymer) with javasc
- Firefox remembering radio buttons incorrectly
- DOM penalty of using html attributes
- How to create an SVG Matrix without an SVG element
- Append new attribute with setAttribute()?
- CSS Firefox box-shadow and outline
- XML Parsing Error in Firefox developer console
- firefox ondrop event.dataTransfer is null after up
Yes, we have added shadow DOM inspection to Firefox 65.0+ DevTools.
Shadow DOM in normal content pages is always displayed e.g.
By default shadow DOM for built in browser features is not displayed e.g here is a video element:
To enable viewing of the Shadow DOM for built in features:
devtools.inspector.showUserAgentShadowRoots
to trueAfter changing this setting you need to restart DevTools (or restart Firefox).
Now the Shadow DOM for built-in elements will be available:
about:config
in the browser address bar.devtools.inspector.showUserAgentShadowRoots
totrue
devtools.inspector.showAllAnonymousContent
totrue
(Firefox 77+)