Closed Bug 1857526 Opened 2 years ago Closed 1 year ago

CSS variable tooltip should show initial value of @property when variable is not set

Categories

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

defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: nchevobbe, Unassigned)

References

(Blocks 1 open bug)

Details

Steps to reproduce

  1. Navigate to data:text/html,<meta charset=utf8><script>CSS.registerProperty({ name: "--a", syntax: "<color>", inherits: false, initialValue: "gold" })</script><style>body { background: var(--a); }</style>Hello
  2. Open the inspector
  3. In the rule view, hover over var(--a)

Expected results

the tooltip says that --a is gold (the initial value of the registered property)

Actual results

the tooltip says --a is not set, although the background is clearly gold


Severity: -- → S3
Priority: -- → P2

This was fixed in Bug 1841023

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.