Closed
Bug 1912006
Opened 2 years ago
Closed 2 years ago
Use OutputParser in var() tooltip to display values
Categories
(DevTools :: Inspector: Rules, enhancement)
DevTools
Inspector: Rules
Tracking
(firefox131 fixed)
RESOLVED
FIXED
131 Branch
| Tracking | Status | |
|---|---|---|
| firefox131 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
Attachments
(1 file)
At the moment, we show the different values in the regular text color
Parsing the values with the OutputParser could the legibility of the tooltip, so we'd have different colors for variable reference, color swatches, …
We should use it for:
- the "header", where we display
--x = <value> - the computed value
- the registered property initial value
- the starting-style value
For the header, it means we might need to refactor things a bit and not put --x = <value> directly in data-variable, but adds those items separately, and reconstruct the string in the tooltip. (which means we should handle the cases where the variable is not set too)
| Assignee | ||
Comment 1•2 years ago
|
||
Re-use the OutputParser options from the declaration so we can have similar
results than in the Rules view.
Updated•2 years ago
|
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/47e3b73033ca
[devtools] Use OutputParser to display values in variable tooltip. r=devtools-reviewers,jdescottes.
Comment 3•2 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
status-firefox131:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 131 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•