dequelabs / axe-core

Accessibility engine for automated Web UI testing
https://www.deque.com/axe/
Mozilla Public License 2.0
5.75k stars 746 forks source link

Investigate supporting partially obscured elements in color-contrast #4508

Open straker opened 1 week ago

straker commented 1 week ago

Currently axe-core ignores partially elements for color-contrast and returns incomplete. However we should investigate updating that to instead only test the visible part of the element for color-contrast. This could be done by updating our get-background-stack function to call splitRects on the target and any node that partially overlaps it, then finding a new element stack with the new target rect.