dequelabs / dequelabs/axe-core

Color contrast should check first-letter and first-line pseudo-elements

Open
#2,854 2 comments 0 reactions 0 assignees View on GitHub
color contrast fix
Dominant language
JavaScript
Stars
7.5k
Forks
933
Avg merge
2d 23h
Merged PRs (30d)
17

Description

Product: axe-core

Expectation: first-letter and first-line pseudo-elements should be checked for color-contrast failures

Actual: Color applied via first-letter or first-line CSS is ignored

Motivation: first-letter is used in trade book publishing to replicate drop caps, first-line is less prevalent. We've implemented axe-core as part of our ebook production process, and these color contrast issues have to be checked manually (or are being missed). It is also an issue in [ace by daisy](https://github.com/daisy/ace) (we use both).

Github doesn't accept html files as attachments, attached examples as txt instead
[first-letter pseudo-element.txt](https://github.com/dequelabs/axe-core/files/6232477/first-letter.pseudo-element.txt)
[first-line pseudo-element.txt](https://github.com/dequelabs/axe-core/files/6232478/first-line.pseudo-element.txt)

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.