Open Bug 1780736 Opened 3 years ago

contrast ratio information is wrong when using hardstop gradient background

Categories

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

defect

Tracking

(Not tracked)

People

(Reporter: nchevobbe, Unassigned)

Details

Steps to reproduce

  1. Go to data:text/html,<meta charset=utf8><style>div {color: black; background: linear-gradient(to right, black 50%25, white 50%25);</style><div>Hello</div>
  2. Right-click on the black rectangle and select "Inspect"
  3. In the rule view, click on the color swatch for the color property

Expected results

In the color picker, the contrast information tells me the color does not meet WCAG standards for accessible text (as we have black text on black background)

Actual results

The color pickers tells me that the color does meet WCAG AAA standard with a high score.


Something is wrong in how we detect the colors for ranges

You need to log in before you can comment on or make changes to this bug.