Inactive CSS not triggered reliably depending on order of edits
Categories
(DevTools :: Inspector: Rules, defect, P2)
Tracking
(firefox-esr68 unaffected, firefox70 unaffected, firefox71 unaffected, firefox72 fixed)
Tracking | Status | |
---|---|---|
firefox-esr68 | --- | unaffected |
firefox70 | --- | unaffected |
firefox71 | --- | unaffected |
firefox72 | --- | fixed |
People
(Reporter: mbalfanz, Assigned: rcaliman)
References
(Blocks 1 open bug)
Details
(Keywords: regression, Whiteboard: dt-q)
Attachments
(3 files)
STR:
- select any element on any page using the inspector
- in the rules view, add
justify-content: center;
- add
display: flex
- change the declaration of step 2 to
justify-items: center
ER: justify-items
is not supported by flexbox and should be marked as inactive
AR: when performing edits in this order, justify-items
is not marked as inactive
Comment 1•6 years ago
|
||
This seems to work for me in DevEdition (71), but fails in nightly (72). I did however get it to work once in nightly still. So this seems a bit intermittent.
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 2•6 years ago
|
||
Assignee | ||
Comment 3•6 years ago
|
||
Depends on D52560
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 4•6 years ago
|
||
(In reply to Patrick Brosset <:pbro> from comment #1)
This seems to work for me in DevEdition (71), but fails in nightly (72). I did however get it to work once in nightly still. So this seems a bit intermittent.
It's not intermittent, but it does rely on a very specific set of steps to reproduce:
- Navigate to:
data:text/html,<style>body { justify-content: center; /*! display: flex */}</style>
- Open the Inspector and enable the
display:flex
declaration (justify-content: center
becomes active). - Rename
justify-content
tojustify-items
.
Expected:
The declaration justify-items: center
should be marked as inactive (depends on display: grid
).
Actual:
The declaration justify-items: center
still shows up as active.
The root cause is a bug introduced by the fix for bug 1557689 whereby the isUsed
flag of declarations is overwritten to a fixed older state of the StyleRuleActor instead of remaining in sync with it as its declarations change.
Comment 6•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/47a58584b813
https://hg.mozilla.org/mozilla-central/rev/b8a3793ecceb
Updated•6 years ago
|
Description
•