Closed Bug 1859079 Opened 1 year ago Closed 1 year ago

Inspector displays colours in new CSS Color 4 formats (e.g. OKLCH) as hex/named colours

Categories

(DevTools :: Inspector: Rules, defect)

Firefox 120
defect

Tracking

(relnote-firefox 120+, firefox120 fixed)

RESOLVED FIXED
120 Branch
Tracking Status
relnote-firefox --- 120+
firefox120 --- fixed

People

(Reporter: cpmsmith, Assigned: cpmsmith)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Thank you for helping make Firefox better. If you are reporting a defect, please complete the following:

What were you doing?

Please tell us what site you were on, and what steps led to the error you are reporting

  1. devtools.defaultColorUnit should be set to authored (the default value)
  2. On any page, open Inspector
  3. On any element, set any property accepting a colour, e.g. background, to any value using a color-module-4 function, e.g. oklch(50% 0.3 10)

What happened?

The value is correctly applied—if you're applying it to the element inline, you can see it in the style attribute—but in the Rules editor, the colour is converted to a named colour if one matches, or else a hex code.

What should have happened?

The Rules editor should show the colour in the format used to type it.

Anything else we should know?

This is observable in Nightly 2023-10-13

Assignee: nobody → calum.p.m.smith
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c0c7c5bc7027 display new CSS level 4 colours correctly in Rules inspector. r=devtools-reviewers,ochameau
Blocks: 1632548
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: