Open
Bug 1780736
Opened 3 years ago
contrast ratio information is wrong when using hardstop gradient background
Categories
(DevTools :: Inspector: Rules, defect, P3)
DevTools
Inspector: Rules
Tracking
(Not tracked)
NEW
People
(Reporter: nchevobbe, Unassigned)
Details
Steps to reproduce
- 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> - Right-click on the black rectangle and select "Inspect"
- In the rule view, click on the color swatch for the
colorproperty
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.
Description
•