Closed Bug 1837790 Opened 1 years ago Closed 1 years ago

Wrong CSS rules being crossed out in "Style" tab of developer tools

Categories

(DevTools :: Inspector: Rules, defect)

Firefox 113
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1824652

People

(Reporter: sam.bugzilla, Unassigned)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/113.0

Steps to reproduce:

Inspecting an example in MDN "Cascade layers" article at: https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Cascade_layers#precedence_order_of_regular_cascade_layers
with developer tools to learn how the Cascade algorithm behaves, I got the wrong rules crossed out, but the render result is correct.

Actual results:

It shows the wrong css rules crossed out. In the example provided, the rules "box-shadow: -5px -5px lightblue !important;" and "font-weight: normal !important;" inside "@layer A" are greyed and crossed out, even though they're the ones winning the conflict (theoretically) and being rendered correctly.

Also, the same bug is present in Chrome.

Expected results:

It shouldn't have crossed the above rules. Layer A should have the 2 rules win the precedence conflict. But again, the render is correct, so only the debugging info displayed in the developer tools are wrong.

Component: Untriaged → Inspector: Rules
Product: Firefox → DevTools
See Also: → 1824652, 1824653
Status: UNCONFIRMED → RESOLVED
Closed: 1 years ago
Duplicate of bug: 1824652
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: