inclusive-design / AChecker

Automated interactive Web content accessibility checker.
https://achecker.ca
GNU General Public License v2.0
70 stars 61 forks source link

Issue with link contrast checking #63

Open ovann86 opened 6 years ago

ovann86 commented 6 years ago

I believe I've come across an issue with the achecker that results in invalid colour contrasts being passed.

In the example attached we have:

When you run it through the achecker test against WCAG 2.0 AA - only the paragraph light colour element comes up with an error.

From my understanding of the requirements, links in WCAG 2.0 AA have two minimum contrast requirements -

Which should mean the link would not pass because:

Oddly, it correctly fails when the same colour is used for non-linked text (paragraph light color).

When you choose a more extreme contrast like #fff linked text with #fff background (so the link is completely invisible to the eye) it still passes.

Attached test case html file.

test link colour contrast.txt

cindyli commented 6 years ago

Thanks for the report, @ovann86. I've added this issue to the AChecker bug tracker: http://www.atutor.ca/atutor/mantis/view.php?id=5822. Will investigate at the next development cycle.