-
Notifications
You must be signed in to change notification settings - Fork 773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
False positive: color-contrast rule fails when body height set to 0-8px #1456
Comments
That's pretty darn obscure, but jup, that's a false positive. |
I did some digging to see if I could determine the root of the problem. In the example, there's a link element of which we take the center x/y coordinates in order to determine the background element stack. It just so happens the y coordinate is 17 pixels which when we take into account the body height of However, this is a case where the visible canvas has a special background color according to the spec:
Since the visible HTML canvas has a background color but not a intrinsically defined one that's within the coordinates, the rule fails. We should probably have |
No docs required. |
Color-contrast rule fails when body height is set to 0-8px, irrespective of the presence of sufficient background/foreground contrast ratio.
Demo: https://codepen.io/iamrafan/pen/WmLJmw?editors=1000#0
The text was updated successfully, but these errors were encountered: