Open
Bug 1551543
Opened 5 years ago
Updated 2 years ago
Inspector fails to detect external style sheets inside shadow DOM
Categories
(DevTools :: Inspector, defect, P3)
DevTools
Inspector
Tracking
(Not tracked)
NEW
People
(Reporter: robwu, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
(deleted),
text/html
|
Details |
What were you doing?
- Load
test.html
- Click on "Add element that has a shadow subtree"
- Right-click on the second div (red rectangle) and choose "Inspect Element".
What happened?
The inspector does not show any style sheets.
If you do see the style sheet, click on the other red div in the inspector.
What should have happened?
The inspector should have shown the applicable style sheet (i.e. :host{border:9px solid red;margin:9px}
).
Anything else we should know?
- In this specific test case, if the devtools were open before the element is inserted, then the inspector works as expected.
- In the original test case, the bug still occurs even if the devtools was open before. Original STR (depending on bug 1542262): 1. Set
extensions.htmlaboutaddons.enabled
to true atabout:config
2. Install any extension if you haven't done so before. 3. Visitabout:addons
, click on the Extensions tab, double-click on a specific extension to see details. 4. Scroll down and use "Inspect Element" on the five stars. Expect rules from "rating-star.css" (actual: they do not show up). - It seems that the style sheet fails to be detected, and that the failed result is cached.
- This happens with
chrome:
,resource:
,https:
anddata:
URLs (other schemes not tested). - This does not happen with inline style sheets (
<style>
element andstyle
attribute) - Reproduced in Nightly 68.0a1 buildID 20190512214232 on macOS.
- Reproduced in Firefox 66.0.3 buildID 20190409155332 on macOS.
Updated•5 years ago
|
Priority: -- → P3
Updated•5 years ago
|
Blocks: devtools-webcomponents
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•