dequelabs / dequelabs/axe-core

color-contrast uses HexCode from subpixel in Text

Open
#4,824 3 comments 0 reactions 0 assignees View on GitHub
ungroomed
Dominant language
JavaScript
Stars
7.5k
Forks
933
Avg merge
2d 23h
Merged PRs (30d)
17

Description

### Product

axe-core

### Product Version

"@axe-core/playwright": 4.10.1

### Latest Version

- [x] I have tested the issue with the latest version of the product

### Issue Description

#### Expectation
Haven a 16px font size on a text with color: #121212 to have sufficient contrast to background #ffffff

#### Actual
Uses a Subpixel of font and declares text color as #808080 which results in unsufficient color contrast

it is hard to reproduce because this is not happening all the time. somtimes the job runs without complaints. seems to be flaky which color will be picked from axe for color comparison

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.