Skip to content

Color contrast test incorrect on some font sizes #116

@timmhayes

Description

@timmhayes

The color contrast tool does not work correctly on fonts that are sized with decimals. I've seen this fail in Chrome with an element that had a size of 10pt, which was rendered at 13.3333px and showed up as a large font that only needs to have a 3.0 contrast ratio.

See a sample of this here:
http://output.jsbin.com/vutotup

I looked through your code and found the issue, but it is a problem in the axs.utils.isLargeFont function of the GoogleChome accessibility-developer-tools. So opened this issue for you:
GoogleChrome/accessibility-developer-tools#345

and created this pull request:
GoogleChrome/accessibility-developer-tools#346

I hope it works out for you, since I really like the tool. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions