Closed Bug 1912285 Opened 1 year ago Closed 1 year ago

Empty computed value isn't displayed in variable tooltip

Categories

(DevTools :: Inspector: Rules, defect, P3)

defect

Tracking

(firefox131 fixed)

RESOLVED FIXED
131 Branch
Tracking Status
firefox131 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Steps to reproduce

  1. Go to data:text/html,<meta charset=utf8><style>body { --a: var(--b); --b: ; color: var(--a);}</style>Hello
  2. Open the inspector
  3. Hover --a in the color declaration

Expected results

There is a "computed value" section in the tooltip, with an empty value

Actual results

There is no "computed value" section

The #createNode function wasn't adding attribute if they
were empty, meaning that the data-variable-computed attribute
wouldn't be set for empty computed value (which are stil valid).

Note that this doesn't look great in the tooltip at the moment,
we may display empty values differently in Bug 1912267.

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/37e81da12248 [devtools] Display empty computed value in var tooltip. r=devtools-reviewers,jdescottes.
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 131 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: