diff --git a/src/app/evaluation/lib/tests.ts b/src/app/evaluation/lib/tests.ts
index b958db86..7dba1d0a 100644
--- a/src/app/evaluation/lib/tests.ts
+++ b/src/app/evaluation/lib/tests.ts
@@ -1123,6 +1123,30 @@ export default {
dis: "43353",
result: "fail",
},
+ aria_09: {
+ type: "prop",
+ elem: "all",
+ test: "ariaControlsIdNotFound",
+ score: 1,
+ level: "A",
+ trust: "1",
+ ref: "in6db8",
+ scs: "",
+ dis: "43353",
+ result: "failed",
+ },
+ aria_10: {
+ type: "true",
+ elem: "all",
+ test: "ariaControlsIdFound",
+ score: 10,
+ level: "A",
+ trust: "1",
+ ref: "in6db8",
+ scs: "",
+ dis: "43353",
+ result: "passed",
+ },
audio_video_01: {
type: "true",
elem: "all",
diff --git a/src/app/evaluation/lib/tests_colors.ts b/src/app/evaluation/lib/tests_colors.ts
index a60d72b6..b7ee8e0f 100644
--- a/src/app/evaluation/lib/tests_colors.ts
+++ b/src/app/evaluation/lib/tests_colors.ts
@@ -25,6 +25,8 @@ export default {
aria_06: "R",
aria_07: "G",
aria_08: "R",
+ aria_09: "R",
+ aria_10: "G",
audio_video_01: "G",
audio_video_02: "R",
autocomplete_01: "G",
diff --git a/src/assets/i18n/English.json b/src/assets/i18n/English.json
index b2b250f3..45e8f7cd 100644
--- a/src/assets/i18n/English.json
+++ b/src/assets/i18n/English.json
@@ -289,6 +289,8 @@
"ariaStNotPermitted": "Not allowed ARIA states and properties",
"ariaAtribDefined": "Attributes aria-* defined",
"ariaAtribNotDefined": "Attributes aria-* wrongly defined",
+ "ariaControlsIdNotFound": "Attribute aria-controls
without the corresponding element",
+ "ariaControlsIdFound": "Attribute aria-controls
with the corresponding element",
"audioAvoidsAutoPlay": "audio
and video
elementos do not play automatically",
"audioAutoPlay": "audio
and video
elementos that play automatically",
"autoCmpltValid": "Valid autocomplete attribute",
@@ -736,6 +738,14 @@
"s": "I found {{value}} aria-* attribute that is not defined in the ARIA specification.",
"p": "I found {{value}} aria-* attributes that are not defined in the ARIA specification."
},
+ "aria_09": {
+ "s": "I found {{value}} references of aria-controls attribute that do not exist in the page.",
+ "p": "I found {{value}} references of aria-controls attributes that do not exist in the page."
+ },
+ "aria_10": {
+ "s": "I found that all references of aria-controls attribute exist in the page.",
+ "p": "I found that all references of aria-controls attributes exist in the page."
+ },
"audio_video_01": {
"s": "I haven’t found any <audio>
or <video>
element that plays automatically.",
"p": "I haven’t found any <audio>
or <video>
element that plays automatically."
@@ -1140,7 +1150,8 @@
"9e45ec": "Word spacing in style attributes is not !important",
"59br37": "Zoomed text node is not clipped with CSS overflow
",
"ARIA11": "Using ARIA landmarks to identify regions of a page",
- "H40": "Using description lists"
+ "H40": "Using description lists",
+ "in6db8": "ARIA required ID references exist"
},
"TXT_TECHNIQUES": {
"H37": "
Check if the alternative text equivalent found in the images provides equal information or function as the one performed by the image on the page.
", @@ -1233,7 +1244,8 @@ "9e45ec": "A word spacing equal to or larger than 0.16 times the font size is important to ensure that all users are able to read the text. CSS styles should not prevent users from increasing the word spacing if they so desire.
", "59br37": "When zooming on a page, the relative size of text and respective container might change, resulting in extra space being needed to present the same text. The CSS property overflow
determines how the containers adjust when zooming. Some of its values might result in text clipping.
Ensure that there is only one main landmark in the page. Main landmarks designate the main content of the page and make it easy for screen reader users to quickly navigate to it. Each page should only have one main content, irrespectively of it being designated using HTML5 or ARIA.
", - "H40": "If description lists contain non list item elements, or if the order of the list item elements is not appropriate, that is,
If description lists contain non list item elements, or if the order of the list item elements is not appropriate, that is,
Check that every ID reference required by WAI-ARIA exists.
" }, "TECHFAIL": { "relationF": "This WCAG 2.1 failure is related to:", diff --git a/src/assets/i18n/Portuguese.json b/src/assets/i18n/Portuguese.json index f81bb0d3..f7e1e4c5 100644 --- a/src/assets/i18n/Portuguese.json +++ b/src/assets/i18n/Portuguese.json @@ -289,6 +289,8 @@ "ariaStNotPermitted": "Valores de estados e propriedades ARIA não permitidos", "ariaAtribDefined": "Atributos aria-* definidos", "ariaAtribNotDefined": "Atributos aria-* mal definidos", + "ariaControlsIdNotFound": "Atributoaria-controls
com valor que não corresponde a um id
de um elemento",
+ "ariaControlsIdFound": "Atributo aria-controls
com valor que corresponde a um id
de um elemento",
"audioAvoidsAutoPlay": "Elementos audio
e video
não tocam automaticamente",
"audioAutoPlay": "Elementos audio
e video
tocam automaticamente",
"autoCmpltValid": "Atributos autocomplete válidos",
@@ -736,6 +738,14 @@
"s": "Encontrei {{value}} atributo aria-* que não está na especificação ARIA.",
"p": "Encontrei {{value}} atributos aria-* que não estão na especificação ARIA."
},
+ "aria_09": {
+ "s": "Encontrei {{value}} referência de um atributo aria-controls que não existe na página.",
+ "p": "Encontrei {{value}} referências de atributos aria-controls que não existem na página."
+ },
+ "aria_10": {
+ "s": "Constatei que a referência de um atributo aria-controls existe na página.",
+ "p": "Constatei que todas as referências de atributos aria-controls existem na página."
+ },
"audio_video_01": {
"s": "Não encontrei nenhum elemento <audio>
ou <video>
que iniciasse automaticamente.",
"p": "Não encontrei nenhum elemento <audio>
ou <video>
que iniciasse automaticamente."
@@ -1140,7 +1150,8 @@
"9e45ec": "Espaçamento de palavras nos atributos de estilo não é !important",
"59br37": "Nó de texto ampliado não é cortado por CSS overflow
",
"ARIA11": "Usar landmarks ARIA para identificar regiões da página",
- "H40": "Usar listas de descrição"
+ "H40": "Usar listas de descrição",
+ "in6db8": "Referências ARIA existem"
},
"TXT_TECHNIQUES": {
"H37": "Verifique se o equivalente alternativo em texto existente nas imagens serve informação ou função igual à desempenhada pela imagem na página.
", @@ -1233,7 +1244,8 @@ "9e45ec": "Um espaçamento entre palavras igual ou superior a 0,16 vezes o tamanho da fonte é importante para garantir que todos os utilizadores conseguem ler o texto. Os estilos CSS não devem impedir que os utilizadores aumentem o espaçamento entre palavras se assim o entenderem.
", "59br37": "Ao ampliar a página a dimensão relativa do texto e dos seus contentores pode mudar o que faz com que estes possam necessitar de mais espaço para apresentar o mesmo texto. A propriedade CSS overflow
determina como os contentores se ajustam. Alguns dos seus valores podem resultar no texto ser cortado.
Garanta que só há um elemento com a semântica de main na página. Elementos com esta semântica designam a parte principal da página e permitem que utilizadores de leitor de ecrã naveguem rapidamente para essa parte da página. Cada página só deve ter um conteúdo principal, independentemente de ser especificado usando HTML5 ou ARIA.
", - "H40": "Se uma lista de descrições conter elementos que não são itens da lista, ou se a ordem dos elementos não estiver correta, isto é, os elementos
Se uma lista de descrições conter elementos que não são itens da lista, ou se a ordem dos elementos não estiver correta, isto é, os elementos
Todas as referências obrigatórias a elementos indicadas num atributo WAI-ARIA têm de existir na página.
" }, "TECHFAIL": { "relationF": "Esta falha WCAG 2.1 está relacionada com:",