You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actual: Color contrast returns incomplete for all nodes under the fold claiming the elements are partially obscured, even though no element obscures it.
I tried to figure out why the rule fails with @scurker, but we both gave up after we couldn't reproduce a reliable test case that worked consistently.
The best we could determine is that when the color-contrast rule tries to determine the background color of the element, it thinks document.body does not visually contain the element. We thought it was because there is an inner scroll element <main> that captures the scroll instead of the body itself, so body never scrolls. But any time we tried to create a test case to reproduce that, the color-contrast rule would pass.
In summary: we think the code for color.getBackgroundColor scrolling the element with scrollIntoView is not scrolling the body element, so when checking dom.visuallyContains, the element fails for document.body.
The text was updated successfully, but these errors were encountered:
straker
changed the title
Color-contrast claims node is partially obscured
Color-contrast rule returns incomplete and claims node is partially obscured
May 2, 2019
@straker , ran axe on, https://straker.github.io/kontra/ , I am seeing "all issues (17)" count, and all 17 were under "Needs to review" section. Verified with the latest axe. What is the expected behaviour here?
Run Axe on https://straker.github.io/kontra/.
Expectation: Color contrast should pass
Actual: Color contrast returns incomplete for all nodes under the fold claiming the elements are partially obscured, even though no element obscures it.
I tried to figure out why the rule fails with @scurker, but we both gave up after we couldn't reproduce a reliable test case that worked consistently.
The best we could determine is that when the color-contrast rule tries to determine the background color of the element, it thinks
document.body
does not visually contain the element. We thought it was because there is an inner scroll element<main>
that captures the scroll instead of the body itself, so body never scrolls. But any time we tried to create a test case to reproduce that, the color-contrast rule would pass.In summary: we think the code for
color.getBackgroundColor
scrolling the element withscrollIntoView
is not scrolling the body element, so when checkingdom.visuallyContains
, the element fails fordocument.body
.The text was updated successfully, but these errors were encountered: