canvas-text-alternative-present

<canvas> must provide a text alternative

automaticWCAG 1.1.1 (A)confidence: highseverity: seriousperceivable

Checks that <canvas> elements provide a text alternative via fallback content or an accessible name.

Applies to. Applies to <canvas> elements included in the accessibility tree. Hidden elements are excluded whether or not they are focusable.

Expectation. Each applicable <canvas> provides a text alternative via fallback content or an accessible name.

Examples

pass
<canvas>Chart summary</canvas>

Fallback content between the tags provides a text alternative.

fail
<canvas></canvas>

No fallback content and no accessible name.

View source