Closed Bug 1838026 Opened 1 year ago Closed 1 year ago

InspectorUtils.getCSSStyleRules does not return nested rules

Categories

(DevTools :: Inspector: Rules, defect, P1)

defect

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

Patch on Bug 1835062 seems to fix this issue.
Let's keep this bug open until the other one lands

Depends on: 1835062

Works fine now that Bug 1835062 landed, closing

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WORKSFORME
Priority: -- → P1
Attachment #9338674 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: