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: _baselines/05Controls.md
+32-11Lines changed: 32 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ order-number: 6
12
12
13
13
The purpose of this Baseline test is to check the following accessibility properties of user controls:
14
14
- Name
15
-
- Role (test not yet available)
15
+
- Role
16
16
- State
17
17
- Value
18
18
@@ -21,6 +21,9 @@ The purpose of this Baseline test is to check the following accessibility proper
21
21
-[User interface component](https://www.w3.org/TR/WCAG22/#dfn-user-interface-components) is a part of the content that is perceived by users as a single control for a distinct function. User interface components include form elements and links as well as components generated by scripts. This test uses the term "user controls" for brevity.
22
22
- The accessibility properties of the user control must be correct if the user control changes.
23
23
- Per [WCAG 2.2 Understanding SC 1.4.1 Use of Color](https://www.w3.org/WAI/WCAG22/Understanding/use-of-color) authors cannot set the visited state of links. The anchor element does not include a "visited" attribute; therefore the author has no ability to alter the state through an attribute setting. Exclude visited/unvisited state of links from this Baseline test.
24
+
-[Widget Roles of Accessible Rich Internet Applications (WAI-ARIA)](https://www.w3.org/TR/wai-aria/#widget_roles) lists roles that may be used for user controls. A "widget" is a "discrete user interface object with which the user can interact. Widgets range from simple objects that have one value or operation (e.g., check boxes and menu items), to complex objects that contain many managed sub-objects (e.g., trees and grids)."
25
+
-[Widget Attributes of Accessible Rich Internet Applications (WAI-ARIA)](https://www.w3.org/TR/wai-aria/#attrs_widgets) lists state and property attributes for user interface elements found on GUI systems or in rich internet applications which receive user input and process user actions. These attributes are used to support the widget roles. The WAI ARIA specification explains "the values of properties (such as aria-labelledby) are often less likely to change throughout the application life-cycle than the values of states (such as aria-checked) which may change frequently due to user interaction."
26
+
- In the Baseline Test instructions, where an ARIA role is identified, it is the first valid ARIA role attribute value.
24
27
25
28
### 5.A Test Procedure for Control Name
26
29
@@ -29,7 +32,6 @@ The purpose of this Baseline test is to check the following accessibility proper
29
32
#### Identify Content
30
33
<pid="5aIC">Identify user controls for a distinct function. Exclude forms and links as these are covered by <ahref="../10Forms">Baseline 10. Forms</a> and <ahref="../14Links"> Baseline 14. Links</a>, respectively.</p>
31
34
32
-
33
35
#### Test Instructions
34
36
<olid="5aTI">
35
37
<li id="5aTI-1">Check that the combination of the accessible name and accessible description is not empty. [SC 4.1.2]</li>
@@ -43,7 +45,7 @@ The purpose of this Baseline test is to check the following accessibility proper
43
45
<li><a href="https://www.w3.org/TR/html-aam-1.0/#accdesc-computation" target="_blank" rel="noopener">HTML Accessibility API Mappings for Accessible Description Computation</a></li>
44
46
</ul>
45
47
</li>
46
-
<li id="5aTI-3">If the name of the user control changes with use of the application, repeat the previous test steps and check that the accessible name is correct after the change. [SC 4.1.2]
48
+
<li id="5aTI-3">If the name of the user control changes on user interaction with the web content or application, repeat the previous test steps and check that the accessible name is correct after the change.
47
49
<ul>
48
50
<li>Depending on the control, a change of name may be triggered by various actions, such as changing values or states of other components, toggling a function, entering data in the component, mouseover, etc.</li>
49
51
<li>Examples include entering a response in a form field for country changes the next form field's label from "state" to "province", selecting a control toggles its functionality from sorting ascending to descending, a link appends "Updated" to its name when the linked page is edited.</li>
@@ -55,46 +57,65 @@ The purpose of this Baseline test is to check the following accessibility proper
55
57
56
58
<pid="5aTR">If any of the above checks fail, then Baseline Test 5.A-ControlName fails.</p>
57
59
58
-
### 5.B Test Procedure for Control Role (not available)
60
+
### 5.B Test Procedure for Control Role
61
+
62
+
**Baseline Test ID: 5.B-ControlRole
63
+
64
+
#### Identify Content
65
+
<pid="5bIC">Identify user controls for a distinct function that have an explicit role attribute (<code>role="[value]"</code>). Examples include forms, links, and toggle controls.</p>
66
+
67
+
#### Test Instructions
68
+
<olid="5bcTI">
69
+
<li id="5bTI-1">Check that the role of the user control is valid and appropriate for its function. [SC 4.1.2]
70
+
<ul>
71
+
<li>Only the roles listed in <a href="https://www.w3.org/TR/wai-aria/#widget_roles">Accessible Rich Internet Applications (WAI-ARIA) Section 5.3.2 Widget Roles</a> are valid for user controls.</li>
72
+
</ul>
73
+
</li>
74
+
</ol>
75
+
76
+
#### Test Results
77
+
78
+
<pid="5bTR">If any of the above checks fail, then Baseline Test 5.B-ControlRole fails.</p>
59
79
60
80
### 5.C Test Procedure for Control State
61
81
62
82
**Baseline Test ID:** 5.C-ControlState
83
+
63
84
#### Identify Content
64
-
<pid="5cIC">Identify user controls for a distinct function. Examples include changes to forms, links, and toggle controls. Exclude the visited/unvisited state of links.</p>
65
-
85
+
<pid="5cIC">Identify user controls for a distinct function that can be set by the user. Examples of such user controls include those that can be checked, expanded, hidden, and pressed. Exclude the visited/unvisited state of links.</p>
66
86
67
87
#### Test Instructions
68
88
<olid="5cTI">
69
-
<li id="5cTI-1">Check that the state of the user control is correct. Attributes such as <code>hidden</code>, <code>disabled</code>, and the use of <a href="https://www.w3.org/WAI/standards-guidelines/aria/">WAI-ARIA</a> to control component states must be used correctly.[SC 4.1.2]</li>
89
+
<li id="5cTI-1">Check that the state of the user control is correct. Attributes such as <code>hidden</code>, <code>disabled</code>, and the use of <a href="https://www.w3.org/TR/wai-aria/#attrs_widgets">WAI-ARIA state attributes</a> must be used correctly.[SC 4.1.2]</li>
70
90
<li id="5cTI-2">If the state of the user control changes with use of the application, check that the state of the user control is correct after a change of state. [SC 4.1.2]
71
91
<ul>
72
92
<li>Depending on the control, a change of state may be triggered by various actions, such as changing values or states of other components, toggling a function, entering data in the component, mouseover, etc.</li>
73
-
<li>Examples include a disabled "Submit" button is enabled when all required form fields are filled in, a link becomes visible after a user-initiated calculation completes, a check box changes from checked to unchecked, links that are hovered or visited.</li>
93
+
<li>Examples include a disabled "Submit" button is enabled when all required form fields are filled in, a link becomes visible after a user-initiated calculation completes, a check box changes from checked to unchecked, a table column sort control is toggled from ascending to descending.</li>
74
94
</ul>
75
95
</li>
76
96
</ol>
77
97
78
98
#### Test Results
79
99
80
-
<pid="5cTR">If any of the above checks fail, then Baseline Test 5.2-ControlState fails.</p>
100
+
<pid="5cTR">If any of the above checks fail, then Baseline Test 5.C-ControlState fails.</p>
81
101
82
102
### 5.D Test Procedure for Control Value
83
103
84
104
**Baseline Test ID:** 5.D-ControlValue
105
+
85
106
#### Identify Content
86
107
<pid="5dIC">Identify controls that have a value that can be changed by a user. Examples include form fields and sliders.</p>
87
108
88
109
#### Test Instructions
89
110
<olid="5dTI">
90
111
<li id="5dTI-1">Check that the value of the user control is correct. [SC 4.1.2]</li>
91
112
<li id="5dTI-2">Modify the value of the user control. Depending on the control, a change of value may be performed by entering a number, selecting from a list of options, etc.</li>
92
-
<li id="5dTI-3">Check that the value of the user control is correct after a change of value. [SC 4.1.2]</li>
113
+
<li id="5dTI-3">Check that the value of the user control is correct after the user-initiated change of value. [SC 4.1.2]</li>
93
114
</ol>
94
115
95
116
#### Test Results
96
117
97
-
<pid="5dTR">If any of the above checks fail, then Baseline Test 5.3-ControlValue fails.</p>
118
+
<pid="5dTR">If any of the above checks fail, then Baseline Test 5.D-ControlValue fails.</p>
| 5. User Controls | Was Changing Content. New test to cover SC 4.1.2 more accurately. |
19
+
| 5.B Control Role | New test |
19
20
| 5.C Control State | Identify Content: excluded state of visited/unvisited links. |
20
21
| 6. Images | Limitations, Assumptions, Exceptions: removed "Equivalent descriptions for an image within page text could allow an image to be considered decorative. However, this does not necessitate removal of any accessible text attributes from the image." |
21
22
| 6. Images | Test Method Rationale: added "The image tests evaluate the images as they were coded to indicate whether they are meaningful or decorative, leaving that determination to the author of the content. However, there are certain scenarios as described in the tests where the author's determination would be incorrect." |
0 commit comments