Skip to content

Commit 09d15b6

Browse files
authored
Various editorial tweaks to heading-descriptive (#2128)
* Various editorial tweaks to heading-descriptive * Update heading-descriptive-b49b2e.md
1 parent bef3efc commit 09d15b6

1 file changed

Lines changed: 15 additions & 17 deletions

File tree

_rules/heading-descriptive-b49b2e.md

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,15 @@ This rule applies to any [semantic][semantic role] `heading` element that is [in
3131

3232
## Expectation
3333

34-
Each target element describes the topic or purpose of the first [perceivable content][] after the test target that is not [decorative][].
34+
Each target element describes the topic or purpose of the first [perceivable content][] after the test target that is not [decorative][]. The order of elements is determined by the [flat tree][].
3535

36-
The order of elements is determined by the [flat tree][].
37-
38-
**Note:** Headings do not need to be lengthy. A word, or even a single character, may suffice.
36+
**Note:** Headings do not need to be lengthy. A word, or even a single character, may be sufficient.
3937

4038
## Assumptions
4139

42-
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.
40+
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.
4341

44-
This rule also assumes that the content the heading is intended to describe is [visible][] and not hidden from AT. 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.
42+
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.
4543

4644
## Accessibility Support
4745

@@ -66,7 +64,7 @@ Headings that are visible but not in the accessibility tree are a failure of [Su
6664

6765
#### Passed Example 1
6866

69-
Heading marked up with `h1` element that describes the topic or purpose of the following [perceivable content][].
67+
This `h1` heading element describes the topic of the following paragraph.
7068

7169
```html
7270
<html lang="en">
@@ -77,7 +75,7 @@ Heading marked up with `h1` element that describes the topic or purpose of the f
7775

7876
#### Passed Example 2
7977

80-
Heading marked up with `role="heading"` that describes the topic or purpose of the following [perceivable content][].
78+
This heading marked up with an [explicit role][] of `heading` describes the topic of the following paragraph.
8179

8280
```html
8381
<html lang="en">
@@ -88,7 +86,7 @@ Heading marked up with `role="heading"` that describes the topic or purpose of t
8886

8987
#### Passed Example 3
9088

91-
Heading marked up with `h1` element with an image that describes the topic or purpose of the following [perceivable content][].
89+
This `h1` heading element with an image describes the topic of the following paragraph.
9290

9391
```html
9492
<html lang="en">
@@ -101,7 +99,7 @@ Heading marked up with `h1` element with an image that describes the topic or pu
10199

102100
#### Passed Example 4
103101

104-
Heading marked up with `h1` element that is a single character that describes the topic or purpose of the following [perceivable content][].
102+
This `h1` heading element has a single character text that describes the topic of the following description list.
105103

106104
```html
107105
<html lang="en">
@@ -121,7 +119,7 @@ Heading marked up with `h1` element that is a single character that describes th
121119

122120
#### Passed Example 5
123121

124-
Heading marked up with `role="heading"` that describes the topic or purpose of the following [perceivable content][]. The heading is positioned off screen but is [included in the accessibility tree][].
122+
This heading marked up with an [explicit role][] of `heading` describes the topic of the following paragraph. The heading is positioned off screen but is [included in the accessibility tree][].
125123

126124
```html
127125
<html lang="en">
@@ -148,7 +146,7 @@ This heading describes the first [perceivable content][] after it (the first `p`
148146

149147
#### Failed Example 1
150148

151-
Heading marked up with `h1` element that does not describe the topic or purpose of the following [perceivable content][].
149+
This `h1` heading element does not describes the topic of the following paragraph.
152150

153151
```html
154152
<html lang="en">
@@ -159,7 +157,7 @@ Heading marked up with `h1` element that does not describe the topic or purpose
159157

160158
#### Failed Example 2
161159

162-
Heading marked up with `role="heading"` that does not describe the topic or purpose of the following [perceivable content][].
160+
This heading marked up with an [explicit role][] of `heading` does not describe the topic of the following paragraph.
163161

164162
```html
165163
<html lang="en">
@@ -170,7 +168,7 @@ Heading marked up with `role="heading"` that does not describe the topic or purp
170168

171169
#### Failed Example 3
172170

173-
Heading marked up with `role="heading"` that does not describe the topic or purpose of the following [perceivable content][]. The heading is positioned off screen but is [included in the accessibility tree][].
171+
This heading marked up with an [explicit role][] of `heading` does not describe the topic of the following paragraph. The heading is positioned off screen but is [included in the accessibility tree][].
174172

175173
```html
176174
<html lang="en">
@@ -183,7 +181,7 @@ Heading marked up with `role="heading"` that does not describe the topic or purp
183181

184182
#### Failed Example 4
185183

186-
This heading does not describe the first [perceivable content][] after it (the first `p` element). The next [perceivable content][] (the second `p` element) is not considered by this rule.
184+
This `h1` heading element does not describe the first [perceivable content][] after it (the first `p` element). The next [perceivable content][] (the second `p` element) is not considered by this rule.
187185

188186
```html
189187
<html lang="en">
@@ -207,7 +205,7 @@ There is no heading.
207205

208206
#### Inapplicable Example 2
209207

210-
Heading is not [included in the accessibility tree][].
208+
This `h1` heading element is not [included in the accessibility tree][].
211209

212210
```html
213211
<html lang="en">
@@ -218,7 +216,7 @@ Heading is not [included in the accessibility tree][].
218216

219217
#### Inapplicable Example 3
220218

221-
`h1` element has an empty [accessible name][].
219+
This `h1` heading element has an empty [accessible name][].
222220

223221
```html
224222
<html lang="en">

0 commit comments

Comments
 (0)