UNPKG

@uuv/a11y

Version:

A javascript lib for running a11y validation based on multiple reference(RGAA, etc)

48 lines (47 loc) 1.78 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const model_1 = require("../../../model"); const query_1 = require("../../../query"); exports.default = [ model_1.ManualCheckA11yRule.from({ criterion: "3.1", wcag: "1.3.1 A, 1.1.4 A", id: "3.1.3", elementType: "image", query: new query_1.ByTagQuery([ "img[title]", "input[type=image][title]", "embed[title]", "object[type=image][title]", "svg[title]", "canvas[title]" ]), attributes: [ "title" ], description: "information should not be a matter of colour alone", help: "adapt shape of image" }), model_1.ManualCheckA11yRule.from({ criterion: "3.1", wcag: "1.3.1 A, 1.1.4 A", id: "3.1.5", elementType: "media", query: new query_1.ByTagQuery([ "object,video,embed,svg,canvas,iframe" ]), description: "Check whether there is another way of retrieving this information (presence of a title attribute, a symbol or a graphic effect in terms of shape or position, a typographic effect, etc.).", help: "adapt shape of temporal media" }), model_1.ManualCheckA11yRule.from({ criterion: "3.1", wcag: "1.3.1 A, 1.1.4 A", id: "3.1.6", elementType: "media", query: new query_1.ByTagQuery([ "object,embed,svg,canvas,iframe" ]), description: "Check whether there is another way of retrieving this information (presence of a title attribute, a symbol or a graphic effect in terms of shape or position, a typographic effect, etc.).", help: "adapt shape of non temporal media" }) ];