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.
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 callsplitRects
on the target and any node that partially overlaps it, then finding a new element stack with the new target rect.