Closed Bug 944719 Opened 11 years ago Closed 11 years ago

color swatches do not update if you changed them

Categories

(DevTools :: Inspector, defect)

All
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 942297

People

(Reporter: sjw+bugzilla, Unassigned)

References

Details

Attachments

(1 file)

249 bytes, text/html
Details
Attached file testcase
If you change a color using the doorhanger from bug 889638, the swatches will not update when you select another element.
Blocks: 889638
I was able to reproduce that problem with the provided testcase, indeed, the STR are: - open the testcase - select any of the 3 elements - change the color in the rule-view using the color picker - then select another element => the color swatch has the color you just picked, not the one defined for the element.
I just tested with colors defined via a CSS class rather than in the style attribute directly => No problem there. So it's something to do with the way we generate color swatches in the "element {}" part of the rule view.
One more test revealed that this has nothing to do with color swatches, in fact any modified style in the "element {...}" part will stay even if you select another element. Also, the modification will survive page reloads: change the value of a declaration in the style attribute, and then press F5 with the toolbox still opened => the changed value is still there.
Brian, this seems to be the same bug you fixed a couple of weeks ago, although I couldn't find it.
Flags: needinfo?(bgrinstead)
(In reply to Patrick Brosset [:pbrosset] from comment #4) > Brian, this seems to be the same bug you fixed a couple of weeks ago, > although I couldn't find it. It is Bug 942297, but I haven't fixed it.
Depends on: 942297
Flags: needinfo?(bgrinstead)
I confirm this is a dup of bug 942297.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
No longer depends on: 942297
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: