Color contrast checks result in an error when axe-core is run from an extension #3837
Closed
1 task done
Labels
Milestone
Product
axe-core
Product Version
Latest Version
Issue Description
Expectation
I expect it to correctly identify color contrast issues
Actual
It does not identify color contrast issues. Instead, an error message is logged to the results:
How to Reproduce
Run axe-core >= 4.6.0 in an extension. (Feel free to reach out, and I can help you get set up with an extension with axe-core >= 4.6.0)
Additional context
I have traced down the issue and am submitting a PR to fix it. The issue is axe-core is trying to set
DOMRect.right
here:axe-core/lib/commons/color/get-background-color.js
Line 153 in 123b83c
DOMRect.right
(andDOMRect.bottom
) is a read-only property.Unfortunately, browsers seem to enforce this inconsistently, and it is only actually enforced from the isolated world that an extension content script runs in.
The text was updated successfully, but these errors were encountered: