dequelabs / dequelabs/axe-core
Check contrast of CSS ::highlight pseudo classes
Open
color contrast
rules
standards
- Dominant language
- JavaScript
- Stars
- 7.5k
- Forks
- 933
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 17
Description
It's possible to use `::highlight()` in CSS to change the foreground and background colors of text. Axe-core should look at this when testing, since it can result both in false positives and false negatives.
I've never seen anyone use this, so it's mostly a theoretical problem. Here's a codepen with how that might work:
https://codepen.io/wilcofiers/pen/xxorwOe
Contributor guide
Assessment
This issue has not been assessed yet.