Closed Bug 1911525 Opened 2 years ago Closed 2 years ago

Rule view shows CSS variable value in declaration instead of declaration text when variable uses light-dark()

Categories

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

defect

Tracking

(firefox131 fixed)

RESOLVED FIXED
131 Branch
Tracking Status
firefox131 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

Details

Attachments

(1 external file)

Steps to reproduce

  1. Navigate to data:text/html,<meta charset=utf8><style>body {--bg: light-dark(red, blue); background: var(--bg); }</style>
  2. Open the inspector and select the body node

Expected results

There's a background: var(--bg) declaration

Actual results

There's a background-color: light-dark(red, blue) declaration (the value is the variable value)


Summary: Rule view shows CSS variable value in declaration instead of declaration text → Rule view shows CSS variable value in declaration instead of declaration text when variable uses light-dark()
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Severity: -- → S3
Priority: -- → P3
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1d693bec567a [devtools] Fix output parser for CSS variable using light-dark(). r=devtools-reviewers,bomsy.

Backed out alongside Bug 1911510, Bug 1626234, Bug 1911524 for causing dt failures on browser_rules_variables_autocomplete.js

Backout link

Push with failures

Failure log

Flags: needinfo?(nchevobbe)

(In reply to Norisz Fay [:noriszfay] from comment #3)

Backed out alongside Bug 1911510, Bug 1626234, Bug 1911524 for causing dt failures on browser_rules_variables_autocomplete.js

Backout link

Push with failures

Failure log

Issue is in Bug 1911524 , I'll fix the test failure for it, and land the other patches in the meantime, as they shouldn't depend on it

Flags: needinfo?(nchevobbe)
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6df42844940a [devtools] Fix output parser for CSS variable using light-dark(). r=devtools-reviewers,bomsy.
Status: ASSIGNED → RESOLVED
Closed: 2 years 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: