Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

Issue with link contrast checking #63

Open
ovann86 opened this issue Oct 26, 2017 · 1 comment
Open

Issue with link contrast checking #63

ovann86 opened this issue Oct 26, 2017 · 1 comment

Comments

@ovann86
Copy link

ovann86 commented Oct 26, 2017

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:

  • paragraph standard colour: #717171
  • paragraph light colour: #0092c0
  • link light colour: #0092c0

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 -

  • 4.5:1 contrast between the link text colour and the background.
  • 3:1 contrast between the link text colour and the surrounding non-link text colour.

Which should mean the link would not pass because:

  • linked text colour -> background (white default) = 3.58:1 - insufficient contrast
  • linked text colour -> non-link text colour = 1.36:1 - insufficient contrast

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
Copy link
Contributor

cindyli commented Oct 26, 2017

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.

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

2 participants