Closed
Bug 1838377
Opened 1 years ago
Closed 1 years ago
StyleEditor rule count doesn't account for nested rules
Categories
(DevTools :: Style Editor, defect)
DevTools
Style Editor
Tracking
(firefox116 fixed)
RESOLVED
FIXED
116 Branch
Tracking | Status | |
---|---|---|
firefox116 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
References
Details
Attachments
(1 file)
The rule count we show in the style editor (under the stylesheet name) is simply StyleSheet.cssRules.length
, which only return the number of top-level rules.
If we want to count nested rules, we need to traverse all the descendant rules as well
(this is already visible with at-rules, and may be even more noticeable once css nesting is enabled)
Assignee | ||
Comment 1•1 years ago
|
||
Updated•1 years ago
|
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/89586dccb277
[devtools] Include nested rules in stylesheet ruleCount. r=devtools-reviewers,jdescottes.
Comment 3•1 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 1 years ago
status-firefox116:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•