Closed
Bug 1838026
Opened 1 year ago
Closed 1 year ago
InspectorUtils.getCSSStyleRules does not return nested rules
Categories
(DevTools :: Inspector: Rules, defect, P1)
DevTools
Inspector: Rules
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: nchevobbe, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 obsolete file)
With the following "page":
<style>
html {
& body {
#nested {
color: cyan;
}
& > div {
color: tomato;
}
}
[id="nested"] {
color: gold;
}
}
div {
color: green;
}
</style>
<div id="nested">Element targetted by nested rule</div>
InspectorUtils.getCSSStyleRules(document.getElementById("nested"))
does not return the expected rules
Reporter | ||
Comment 1•1 year ago
|
||
Depends on D180701
Reporter | ||
Comment 2•1 year ago
|
||
Patch on Bug 1835062 seems to fix this issue.
Let's keep this bug open until the other one lands
Depends on: 1835062
Reporter | ||
Comment 3•1 year ago
|
||
Works fine now that Bug 1835062 landed, closing
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WORKSFORME
Reporter | ||
Updated•1 year ago
|
Priority: -- → P1
Updated•1 year ago
|
Attachment #9338674 -
Attachment is obsolete: true
You need to log in
before you can comment on or make changes to this bug.
Description
•