-
Notifications
You must be signed in to change notification settings - Fork 882
color-contrast check: getImageData fails with value is not of type long #3918
Copy link
Copy link
Closed
Labels
color contrastColor contrast issuesColor contrast issuescommonsIssues in the common code (lib/commons)Issues in the common code (lib/commons)fixBug fixesBug fixesprA pr has been created for the issueA pr has been created for the issue
Milestone
Description
Product
axe-core
Product Version
4.6.3
Latest Version
- I have tested the issue with the latest version of the product
Issue Description
Expectation
Run an accessibility audit without errors.
Actual
Getting this error:
"
TypeError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': Value is not of type 'long'.- feature unsupported in your environment. Skipping color-contrast rule."
How to Reproduce
- Go to https://simpletire.com/
- Paste axe-min code
- Run this code:
axe
.run()
.then(results => {
if (results.violations.length) {
console.log(results.incomplete.find(item => item.id === "color-contrast"))
}
})
Additional context
Width is zero / font size is infinity. Maybe because the custom font can't be found?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
color contrastColor contrast issuesColor contrast issuescommonsIssues in the common code (lib/commons)Issues in the common code (lib/commons)fixBug fixesBug fixesprA pr has been created for the issueA pr has been created for the issue
Type
Fields
Give feedbackNo fields configured for issues without a type.

