Closed Bug 1778443 Opened 2 years ago Closed 2 years ago

Color popup shown from color-mix color parameter show confusing contrast ratio

Categories

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

defect

Tracking

(firefox104 fixed)

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

Details

Attachments

(2 files)

In Bug 1695382, we're adding color swatches next to color-mix color parameters; clicking on one of the swatch displays the color popup.

Let's say you have a page with a white background and the following CSS color: color-mix(in srgb, black 90%, white);

Clicking on the white swatch will show the popup, with a contrast-radio score of 1.00 and an error icon, although the actual color of the text is a dark grey that would score 17.40 AAA

A first step might be to hide the contrast information since it's not reliable in such case,
but ideally we'd use the computed color for the contrast information.

P2 to at least not show contrast ratio if we cannot have accurate data

Severity: -- → S3
Priority: -- → P2
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1a699854c950
[devtools] Do not show contrast ratio information for color in color-mix. r=jdescottes.
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
Regressions: 1780931
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: