Closed Bug 1412071 Opened 7 years ago Closed 7 years ago

JSON Viewer uses unset CSS variables

Categories

(DevTools :: JSON Viewer, defect)

54 Branch
defect
Not set
normal

Tracking

(firefox-esr52 unaffected, firefox56 wontfix, firefox57 wontfix, firefox58 fixed)

RESOLVED FIXED
Firefox 58
Tracking Status
firefox-esr52 --- unaffected
firefox56 --- wontfix
firefox57 --- wontfix
firefox58 --- fixed

People

(Reporter: Oriol, Assigned: Oriol)

References

Details

(Keywords: regression)

Attachments

(1 file)

Some elements in JSON Viewer are styled with CSS variables that are never set. This shows lots of warnings when running tests, and it's so annoying.

For example, http://searchfox.org/mozilla-central/rev/dd47bee6468de7e1221b4d006342ad6b9813d0e5/devtools/client/jsonview/css/toolbar.css#23 uses

    border: var(--toolbarbutton-border);

But http://searchfox.org/mozilla-central/search?q=--toolbarbutton-border reveals that --toolbarbutton-border is not set anywhere. There are --toolbarbutton-border-color and --toolbarbutton-border-radius, but not --toolbarbutton-border.
So this is a regression from bug 1255116, which removed --toolbarbutton-border and added --toolbarbutton-border-color. The former was `1px solid transparent`, so I used `1px solid var(--toolbarbutton-border-color)`.
Assignee: nobody → oriol-bugzilla
Blocks: 1255116
Status: NEW → ASSIGNED
Keywords: regression
Comment on attachment 8922475 [details]
Bug 1412071 - Use --toolbarbutton-border-color instead of removed --toolbarbutton-border.

https://reviewboard.mozilla.org/r/193550/#review200024

Yep, works for me.

R+

Thanks for the patch!
Honza
Attachment #8922475 - Flags: review?(odvarko) → review+
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/f0fb92252106
Use --toolbarbutton-border-color instead of removed --toolbarbutton-border. r=Honza
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/f0fb92252106
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 58
Version: unspecified → 54 Branch
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: