Closed Bug 1501636 Opened 7 years ago Closed 7 years ago

Show deeper information in CSS variable tooltip

Categories

(DevTools :: Inspector, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1423701

People

(Reporter: fvsch, Unassigned)

References

(Blocks 1 open bug)

Details

When a CSS variable --a is set to another variable --b, its tooltip shows: --a = var(--b) As a user, this feels like hitting a wall. To get to the value of --b, the user would then have to use the filter input, type --b, and look at the filtered results. Having done it quite a bit, it's a frustrating experience. It would be great to show more detailed information, for example: --a = var(--b) --b = #cc0088 Or as a oneliner: --a = var(--b) ← #cc0088 But the multi-line version can be useful when we have more than one variable: --a = calc(var(--b) - var(--c) + 10px) --b = 80vh --c = 120px It seems this in bug 1431949 we decided not to pursue something like that: https://bugzilla.mozilla.org/show_bug.cgi?id=1431949#c6 As CSS variable usage grows, it would be useful to find a way to show users what value gets applied, without requiring them to switch to Rules filtering or to the Computed view. I can provide a couple use cases if that's helpful.
Depends on: 1223058
Blocks: 1223058
No longer depends on: 1223058
I think this is the same as what we have done in Bug 1423701.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.