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: .github/PULL_REQUEST_TEMPLATE.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,7 @@ This will require a 2 weeks Call for Review << new rule, or substantial changes
27
27
-[ ] Add label to indicate if it's a `Rule`, `Definition` or `Chore`.
28
28
-[ ][Link the PR to any issue it solves](https://help.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue). This will be done automatically by [referencing the issue](https://help.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword) at the top of this comment in the indicated place.
29
29
-[ ] Optionally request feedback from anyone in particular by assigning them as "Reviewers".
30
+
-[ ] If your PR is for a new rule with an Accessibility Support note, or for updating the Accessibility Support note of an existing section, make sure to open a corresponding Accessibility Support issue.
Copy file name to clipboardExpand all lines: _rules/heading-descriptive-b49b2e.md
+4-22Lines changed: 4 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,11 +40,13 @@ Each target element describes the topic or purpose of the first [perceivable con
40
40
41
41
Headings that are visible but not in the accessibility tree are a failure of [Success Criterion 1.3.1 Info and Relationships][sc131]. These are not tested by this rule but they can still fail [Success Criterion 2.4.6 Headings and Labels][sc246].
42
42
43
+
Testing tools treat empty headings `<h1></h1>` or `div role="heading" aria-level="1"></div>` differently. Some fail empty headings under 1.3.1, others under 2.4.6, while others pass these headings because they are ignored by most assistive technologies causing no accessibility barriers at all. This rule doesn't include examples of empty headings because there is currently no harmonized approach for testing them.
44
+
43
45
### Assumptions
44
46
45
-
This rule assumes that the [flat tree][] order is close to the reading order as elements are rendered on the page. Due to positioning, it is possible to render a document in an order that greatly differs from the tree order, in which case the content which is visually associated with a heading might not be the content following it in tree order and this rule might fail while [Success Criterion 2.4.6 Headings and Label][sc246] is still satisfied.
47
+
This rule assumes that the [flat tree][] order is close to the reading order as elements are rendered on the page. Due to positioning, it is possible to render a document in an order that greatly differs from the tree order, in which case the content which is visually associated with a heading might not be the content following it in tree order and this rule might fail while [Success Criterion 2.4.6 Headings and Labels][sc246] is still satisfied.
46
48
47
-
This rule also assumes that the content the heading is intended to describe is [visible][] and not hidden from assistive technologies. Otherwise, cases such as expandable content using a heading might fail this rule while [Success Criterion 2.4.6 Headings and Label][sc246] is still satisfied.
49
+
This rule also assumes that the content the heading is intended to describe is [visible][] and not hidden from assistive technologies. Otherwise, cases such as expandable content using a heading might fail this rule while [Success Criterion 2.4.6 Headings and Labels][sc246] is still satisfied.
48
50
49
51
### Accessibility Support
50
52
@@ -215,26 +217,6 @@ This `h1` heading element is not [included in the accessibility tree][].
215
217
</html>
216
218
```
217
219
218
-
#### Inapplicable Example 3
219
-
220
-
This `h1` heading element has an empty [accessible name][].
221
-
222
-
```html
223
-
<htmllang="en">
224
-
<h1></h1>
225
-
</html>
226
-
```
227
-
228
-
#### Inapplicable Example 4
229
-
230
-
Semantic heading has an empty [accessible name][].
231
-
232
-
```html
233
-
<htmllang="en">
234
-
<prole="heading"aria-level="1"></p>
235
-
</html>
236
-
```
237
-
238
220
[decorative]: https://www.w3.org/TR/WCAG22/#dfn-pure-decoration'WCAG definition of Pure decoration'
239
221
[flat tree]: https://drafts.csswg.org/css-scoping/#flat-tree'Definition of flat tree'
240
222
[included in the accessibility tree]: #included-in-the-accessibility-tree'Definition of included in the accessibility tree'
0 commit comments