Skip to content
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.

Contrast ratio test fails on background gradients #67

Open
matteobelfiore opened this issue Feb 20, 2017 · 0 comments
Open

Contrast ratio test fails on background gradients #67

matteobelfiore opened this issue Feb 20, 2017 · 0 comments

Comments

@matteobelfiore
Copy link

When the test runs on pages with a gradient as a background, the background is evaluated as #ffffff. If the text colour happens to be too light —or white as well— the test obviously fails with:

Text elements should have a reasonable contrast ratio

It would probably be a good idea to pick the lightest of the gradient colours and run the test on that one instead, or on each colour separately.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant