You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _rules/html-page-title-descriptive-c4a8a4.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,10 @@ htmlHintIgnore:
37
37
38
38
## Applicability
39
39
40
-
This rule applies to the [document title][] of each [html web page][] if this [document title][] contains not only [whitespace](#whitespace)[text nodes](https://dom.spec.whatwg.org/#text).
40
+
This rule applies to the [document title][] of each [html web page][], except if one of the following is true:
41
+
42
+
- The [html web page][] has no [document title][]; or
43
+
- The [document title][] contains only [whitespace](#whitespace)[text nodes](https://dom.spec.whatwg.org/#text).
41
44
42
45
## Expectation
43
46
@@ -126,7 +129,7 @@ This `title` element, which is within the `body`, describes the content of the d
126
129
127
130
#### Failed Example 1
128
131
129
-
This `<title>` element does not describe the content of the document.
132
+
This `title` element does not describe the content of the document.
Copy file name to clipboardExpand all lines: _rules/iframe-non-empty-accessible-name-cae760.md
+20-9Lines changed: 20 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,16 +16,17 @@ input_aspects:
16
16
acknowledgments:
17
17
authors:
18
18
- Jey Nandakumar
19
+
- Tom Brunet
19
20
- Wilco Fiers
20
21
funding:
21
22
- WAI-Tools
22
23
---
23
24
24
25
## Applicability
25
26
26
-
This rule applies to `iframe` elements that are [included in the accessibility tree][] and do not have a negative `tabindex`[attribute value][].
27
-
28
-
**Note:**`frame` element is deprecated, this rule does not consider `frame` or `frameset` elements.
27
+
This rule applies to `iframe` elements that are [included in the accessibility tree][] and for which all of the following are true:
28
+
- the `iframe` does not have a negative `tabindex`[attribute value][]; and
29
+
- the `iframe` does not have an [explicit semantic role][] of `presentation` or `none`.
29
30
30
31
## Expectation
31
32
@@ -37,14 +38,18 @@ If an `iframe` is not perceived by the user as a single control, it does not qua
37
38
38
39
## Accessibility Support
39
40
40
-
- Some browsers include `iframe` elements in the [sequential focus navigation][]. This ensures that the contents of `iframe` elements can be scrolled and accessed by using the keyboard. When an `iframe` is removed from the accessibility tree, this rule is still applicable for those browsers, unless the `iframe` is explicitly removed from [sequential focus navigation][] (by having the `tabindex` attribute set to a negative value).
41
-
42
41
- Browser and assistive technology support for `iframe` elements is currently **inconsistent**. Some examples of inconsistencies include (but are not limited to):
43
42
- There is a known combination of a popular browser and assistive technology that ignores `aria-label` and only announces `title` attribute as an [accessible name][]
44
43
- Some assistive technologies ignore empty `iframe` elements, regardless of if they are focusable or if they have an accessible name.
44
+
- Some browsers instantly redirect focus from `iframe` elements to the first focusable element inside that iframe. This redirect makes it appear as though the `iframe` never receives focus. This occurs even if the `iframe` has a non-negative `tabindex`[attribute value][].
45
+
- Not all browsers redirect focus on `iframe` elements. This ensures that the contents of `iframe` elements can be scrolled and accessed by using the keyboard. This must not be circumvented by using a negative tabindex, as this will make the `iframe` completely inaccessible for keyboard navigation.
45
46
46
47
## Background
47
48
49
+
The `frame` element is deprecated, this rule does not consider `frame` or `frameset` elements.
50
+
51
+
Due to inconsistencies in handling focus on `iframe`, this rule ignores `iframe` elements for which there is an attempt to hide them from assistive technologies. Whether `iframe` elements that are inapplicable to this rule still require an accessible name varies between browsers.
52
+
48
53
### Bibliography
49
54
50
55
-[H64: Using the title attribute of the frame and iframe elements](https://www.w3.org/WAI/WCAG21/Techniques/html/H64)
@@ -110,10 +115,8 @@ This `iframe` element has an empty (`""`) [accessible name][] because the `title
110
115
111
116
This `iframe` element has an empty (`""`) [accessible name][] because the `title` attribute value is trimmed of [whitespace][] by the [accessible name computation][accessible name and description computation].
112
117
113
-
**Note:**: Because `iframe` elements are part of [sequential focus navigation][], the [explicit semantic role](#explicit-role) of `none` will be ignored, due to the [Presentational Roles Conflict Resolution](https://www.w3.org/TR/wai-aria-1.1/#presentational-roles-conflict-resolution).
Copy file name to clipboardExpand all lines: _rules/image-button-non-empty-accessible-name-59796f.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ The [input type="image" Accessible Name Computation algorithm](https://www.w3.or
60
60
61
61
## Background
62
62
63
-
Contrarily to `img` elements, an empty `alt` attribute does not make image button decorative; image buttons have a button role and are therefore exposed as interactive elements. Consequently, an empty `alt` attribute does not provide a "usable string" for image buttons and the computation defaults to other means of providing a name, as defined in [input type="image" Accessible Name Computation algorithm](https://www.w3.org/TR/html-aam/#input-type-image-accessible-name-computation).
63
+
Contrarily to `img` elements, an empty `alt` attribute (`alt=""`) does not make an image button decorative; image buttons have a button role and are therefore exposed as interactive elements. Consequently, an empty `alt` attribute does not provide a "usable string" for image buttons and the computation defaults to other means of providing a name, as defined in [input type="image" Accessible Name Computation algorithm](https://www.w3.org/TR/html-aam/#input-type-image-accessible-name-computation).
Copy file name to clipboardExpand all lines: _rules/image-non-empty-accessible-name-23a2a8.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ There are no assumptions.
52
52
53
53
## Accessibility Support
54
54
55
-
- There are several popular browsers that do not treat images with empty `alt` attribute as having a role of `presentation` but instead add the `img` element to the accessibility tree with a [semantic role][] of either `img` or `graphic`.
55
+
- There are several popular browsers that do not treat images with an empty `alt` attribute (`alt=""`) as having a role of `presentation` but instead add the `img` element to the accessibility tree with a [semantic role][] of either `img` or `graphic`.
56
56
- Implementation of [Presentational Roles Conflict Resolution][] varies from one browser or assistive technology to another. Depending on this, some [semantic][semantic role]`img` elements can fail this rule with some technology but users of other technologies would not experience any accessibility issue.
57
57
- Images can have their role set to `presentation` through an empty `alt` attribute. [Presentational Roles Conflict Resolution][] does not specify what to do if such an image is [focusable][] (it only specifies what to do in case of explicit `role="none"` or `role="presentation"`). Some browsers expose these images and some don't. Thus, this rule may fail for technologies that expose these without creating an accessibility issue for users of other technologies.
Copy file name to clipboardExpand all lines: _rules/sequentially-focusable-element-has-visible-focus-oj04fd.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,9 +40,9 @@ There are no accessibility support issues known.
40
40
41
41
Default styling in user agents provides a focus indication for focusable elements (even those that are not focusable by default), as shown in Passed Examples 1 and 2. Many examples in this rule need to **remove** that indicator in order to illustrate various situations. This is bad practice and should normally be avoided.
42
42
43
-
WCAG 2.0 and 2.1 do not have any requirement of how big or small focus indicator should be, or how far or near from the [focusable][] element it should be. Thus it is possible to pass this rule and [Success Criterion 2.4.7 Focus Visible][sc247] with barely perceptible changes at the other end of the page. That would however still be an accessibility issue. WCAG 2.2 includes [Success Criterion 2.4.11 Focus Appearance][sc2411] and [Success Criterion 2.4.12 Focus Not Obscured (Minimum)][sc2412] specifying how big the focus indicator should be. All Examples in this rule satisfy those success criteria.
43
+
WCAG 2.0 and 2.1 do not have any requirement of how big or small focus indicator should be, or how far or near from the [focusable][] element it should be. Thus it is possible to pass this rule and [Success Criterion 2.4.7 Focus Visible][sc247] with barely perceptible changes at the other end of the page. That would however still be an accessibility issue. WCAG 2.2 includes [Success Criterion 2.4.11 Focus Appearance][sc2411] and [Success Criterion 2.4.12 Focus Not Obscured (Minimum)][sc2412] specifying how big the focus indicator should be. All Passed Examples in this rule satisfy those success criteria.
44
44
45
-
WCAG has no clear requirement of unicity of the focus indicator for each [focusable][] element. Therefore, this rule can pass even if several focus indicators are identical. Such a situation may nonetheless cause confusion and all Examples in this rule avoid it.
45
+
WCAG does not require that the focus indicator for each [focusable][] element is unique in appearance. Therefore, this rule can pass even if several focus indicators are identical. Such a situation may nonetheless cause confusion and all Examples in this rule avoid it.
Copy file name to clipboardExpand all lines: _rules/text-contrast-afw4f7.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ This rule applies to any [visible][] character in a [text node][] that is a [chi
38
38
39
39
## Expectation
40
40
41
-
For each test target, the [highest possible contrast][] between the [foreground colors][] and [background colors][] is at least 4.5:1 or 3.0:1 for [larger scale text][], except if the test target is part of a [text node][] that is [purely decorative][] or does not express anything in [human language][].
41
+
For each test target, the [highest possible contrast][] between the [foreground colors][] and [background colors][] is at least 3.0:1 for [large scale text][] and 4.5:1 for other texts, except if the test target is part of a [text node][] that is [purely decorative][] or does not express anything in [human language][].
42
42
43
43
## Assumptions
44
44
@@ -431,7 +431,7 @@ This text is part of a [disabled][] widget because it is a child of an element w
431
431
[foreground colors]: #foreground-colors-of-text'Definition of Foreground color of text'
432
432
[highest possible contrast]: #highest-possible-contrast'Definition of Highest possible contrast'
433
433
[human language]: https://www.w3.org/TR/WCAG21/#dfn-human-language-s'WCAG 2.1, Human language'
434
-
[larger scale text]: #large-scale-text'Definition of Large scale text'
434
+
[large scale text]: #large-scale-text'Definition of Large scale text'
Copy file name to clipboardExpand all lines: _rules/text-contrast-enhanced-09o5cg.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ This rule applies to any [visible][] character in a [text node][] that is a [chi
43
43
44
44
## Expectation
45
45
46
-
For each test target, the [highest possible contrast][] between the [foreground colors][] and [background colors][] is at least 7:1 or 4.5:1 for [larger scale text][], except if the test target is part of a [text node][] that is [purely decorative][] or does not express anything in [human language][].
46
+
For each test target, the [highest possible contrast][] between the [foreground colors][] and [background colors][] is at least 4.5:1 for [large scale text][] and 7.0:1 for other texts, except if the test target is part of a [text node][] that is [purely decorative][] or does not express anything in [human language][].
47
47
48
48
## Assumptions
49
49
@@ -455,7 +455,7 @@ This text is part of a [disabled][] widget because it is a child of an element w
455
455
[foreground colors]: #foreground-colors-of-text'Definition of Foreground color of text'
456
456
[highest possible contrast]: #highest-possible-contrast'Definition of Highest possible contrast'
457
457
[human language]: https://www.w3.org/TR/WCAG21/#dfn-human-language-s'WCAG 2.1, Human language'
458
-
[larger scale text]: #large-scale-text'Definition of Large scale text'
458
+
[large scale text]: #large-scale-text'Definition of Large scale text'
Copy file name to clipboardExpand all lines: pages/glossary/implicit-role.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,4 +13,4 @@ Implicit roles for HTML and SVG, are documented in the [HTML accessibility API m
13
13
14
14
#### Accessibility Support
15
15
16
-
- Images with an empty `alt` attribute should have an implicit role of `presentation`, according to the [HTML Accessibility API Mapping (work in progress)](https://www.w3.org/TR/html-aam-1.0/#html-element-role-mappings). However, there are several popular browsers that do not treat images with empty `alt` attribute as having a role of `presentation`. Instead, they add the `img` element to the accessibility tree with a role of either `img` or `graphic`.
16
+
- Images with an empty `alt` attribute (`alt=""`) should have an implicit role of `presentation`, according to the [HTML Accessibility API Mapping (work in progress)](https://www.w3.org/TR/html-aam-1.0/#html-element-role-mappings). However, there are several popular browsers that do not treat images with empty `alt` attribute as having a role of `presentation`. Instead, they add the `img` element to the accessibility tree with a role of either `img` or `graphic`.
0 commit comments