Skip to content
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

Molerat is confused by transparency in nested elements #16

Open
colons opened this issue Apr 16, 2019 · 0 comments · May be fixed by #17
Open

Molerat is confused by transparency in nested elements #16

colons opened this issue Apr 16, 2019 · 0 comments · May be fixed by #17

Comments

@colons
Copy link
Contributor

colons commented Apr 16, 2019

Molerat will, with an entirely default configuration, consider the following html file to be 'ok':

<!doctype html>
<html>
  <head>
    <title>wcag zoo contrast testing</title>
    <style>
      div {
        background-color: rgb(34, 34, 34);
        color: rgba(255, 255, 255, 0.8);
      }
    </style>
  </head>
  <body>
    <div>woof</div>
  </body>
</html>

This, on the other hand, is failed due to inadequate contrast ratios:

<!doctype html>
<html>
  <head>
    <title>wcag zoo contrast testing</title>
    <style>
      div {
        background-color: rgb(34, 34, 34);
        color: rgba(255, 255, 255, 0.8);
      }
    </style>
  </head>
  <body>
    <div>
      <p>woof</p>
    </div>
  </body>
</html>

We are told:

ERROR - Insufficient contrast (1.31) for text at element - /html/body/p
    Computed rgb values are == Foreground [1, 2, 3] / Background [34, 34, 34]
    Text was:         woof
    Colored text was: woof
    Computed font-size was: 10 normal (normal)
   Hint: Increase the contrast of this text to fix this error
@colons colons changed the title Molerat is confused by nested elements Molerat is confused by opacity in nested elements Apr 16, 2019
@colons colons changed the title Molerat is confused by opacity in nested elements Molerat is confused by transparency in nested elements Apr 16, 2019
@colons colons linked a pull request Apr 16, 2019 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant