[InactiveCSS] incorrect inactive CSS on pseudo element when pseudo element node is selected
Categories
(DevTools :: Inspector: Rules, defect, P2)
Tracking
(firefox-esr128 unaffected, firefox131 unaffected, firefox132 fixed, firefox133 fixed)
Tracking | Status | |
---|---|---|
firefox-esr128 | --- | unaffected |
firefox131 | --- | unaffected |
firefox132 | --- | fixed |
firefox133 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
References
(Regression)
Details
(Keywords: regression)
Attachments
(4 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-beta+
|
Details | Review |
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-beta+
|
Details | Review |
Steps to reproduce
- Go to
data:text/html,<meta charset=utf8><style>button::before { content: "d"; position: relative; top: 20px; }</style><button>hello</button>
- Open the inspector
- Select the
button
::before
node
Actual results
The top
declaration is marked as inactive, although it is, since the element has position: relative
This was regressed by Bug 1583641
Assignee | ||
Comment 1•11 months ago
|
||
When directly selecting the pseudo element in the markup view,
we were still passing the pseudo element as a second arguement
of getComputedStyle, which would not return the expected data.
A test case is added to ensure we don't regress this.
Updated•11 months ago
|
Comment 2•11 months ago
|
||
Set release status flags based on info from the regressing bug 1583641
Updated•11 months ago
|
Assignee | ||
Comment 3•11 months ago
|
||
A test case is added to cover the fix.
Comment 5•11 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f7452beb2ca4
https://hg.mozilla.org/mozilla-central/rev/023a53a2e2b7
Assignee | ||
Comment 6•11 months ago
|
||
When directly selecting the pseudo element in the markup view,
we were still passing the pseudo element as a second arguement
of getComputedStyle, which would not return the expected data.
A test case is added to ensure we don't regress this.
Original Revision: https://phabricator.services.mozilla.com/D224195
Updated•11 months ago
|
Assignee | ||
Comment 7•11 months ago
|
||
A test case is added to cover the fix.
Original Revision: https://phabricator.services.mozilla.com/D224347
Updated•11 months ago
|
Comment 8•11 months ago
|
||
beta Uplift Approval Request
- User impact if declined: Erroneous inactive CSS information in the Inspector when selecting a pseudo element node
- Code covered by automated testing: yes
- Fix verified in Nightly: no
- Needs manual QE test: no
- Steps to reproduce for manual QE testing: -
- Risk associated with taking this patch: low
- Explanation of risk level: simple devtools only fix, covered by automated test
- String changes made/needed: -
- Is Android affected?: no
Updated•11 months ago
|
Updated•11 months ago
|
Updated•11 months ago
|
Description
•