Check contrast of CSS ::highlight pseudo classes #4553
Labels
color contrast
Color contrast issues
rules
Issue or false result from an axe-core rule
standards
Issues in the ARIA standards objects (lib/standards)
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
The text was updated successfully, but these errors were encountered: