Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update act-rules-format.md for mapping secondary accessibility requirements #531

Merged
merged 55 commits into from
Jul 10, 2023
Merged
Changes from 1 commit
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
d06205a
Update act-rules-format.md
kengdoj Jul 15, 2022
ae658ba
Update act-rules-format.md
kengdoj Jul 15, 2022
5c8814d
Update act-rules-format.md
kengdoj Jul 15, 2022
ca118f3
Update act-rules-format.md
kengdoj Jul 28, 2022
faca230
Update act-rules-format.md
kengdoj Jul 28, 2022
c6a0bcd
Update act-rules-format.md
kengdoj Jul 28, 2022
3a42ca5
Update act-rules-format.md
kengdoj Aug 10, 2022
8aab815
Update act-rules-format.md
kengdoj Aug 25, 2022
4dc257e
Update act-rules-format.md
kengdoj Aug 25, 2022
4149fc8
Update act-rules-format.md
kengdoj Aug 25, 2022
94e3ddb
Update act-rules-format.md
kengdoj Aug 25, 2022
1edfa96
Update act-rules-format.md
kengdoj Aug 25, 2022
d78ced1
Update act-rules-format.md
kengdoj Aug 25, 2022
50e6f96
Update act-rules-format.md
kengdoj Aug 25, 2022
ad065fa
Update act-rules-format.md
kengdoj Aug 25, 2022
428c777
Update act-rules-format.md
kengdoj Aug 25, 2022
62ad17a
Update act-rules-format.md
kengdoj Aug 25, 2022
3d83ed9
Update act-rules-format.md
kengdoj Aug 25, 2022
7850c84
Update act-rules-format.md
kengdoj Aug 25, 2022
c6604c6
Update act-rules-format.md
kengdoj Aug 25, 2022
3321f8f
Update act-rules-format.md
kengdoj Aug 25, 2022
f1d4051
Update act-rules-format.md
kengdoj Aug 25, 2022
c2cb8bd
Update act-rules-format.md
kengdoj Aug 25, 2022
b59f9c5
Update act-rules-format.md
kengdoj Aug 25, 2022
ca1fde0
Update act-rules-format.md
kengdoj Aug 25, 2022
0463d8a
Update act-rules-format.md
kengdoj Aug 25, 2022
a54100d
Update act-rules-format.md
kengdoj Aug 25, 2022
6b3314e
Update act-rules-format.md
kengdoj Sep 7, 2022
d1c0d9e
Update act-rules-format.md
kengdoj Sep 22, 2022
9518e6d
Update act-rules-format.md
kengdoj Sep 22, 2022
052858c
Update act-rules-format.md
kengdoj Sep 22, 2022
1852468
Update act-rules-format.md
kengdoj Sep 22, 2022
46152cc
Update act-rules-format.md
kengdoj Oct 6, 2022
f268da2
Update act-rules-format.md
kengdoj Nov 17, 2022
a3fdbc7
Update act-rules-format.md
kengdoj Nov 29, 2022
e701f60
Update act-rules-format.md
kengdoj Dec 6, 2022
6da8df5
Update act-rules-format.md
kengdoj Dec 6, 2022
83cfcfb
Update act-rules-format.md
kengdoj Dec 6, 2022
2e1418c
Update act-rules-format.md
kengdoj Dec 6, 2022
be78cdb
Update act-rules-format.md
kengdoj Dec 6, 2022
6173784
Update act-rules-format.md
kengdoj Dec 6, 2022
e6af050
Apply suggestions from code review
kengdoj Dec 6, 2022
639b64b
Apply suggestions from code review
kengdoj Dec 6, 2022
47b5c37
Update act-rules-format.md
kengdoj Dec 6, 2022
9aeb2e7
Update act-rules-format.md
kengdoj Dec 6, 2022
40d3449
Update act-rules-format.md
kengdoj Dec 6, 2022
fb80828
Update act-rules-format.md
kengdoj Dec 6, 2022
0f6dea9
Update act-rules-format.md
kengdoj Dec 6, 2022
b6ec42b
Update act-rules-format.md
kengdoj Dec 6, 2022
17350fe
Update version & editors
WilcoFiers Jan 18, 2023
ed0f372
Creates subdirectory
daniel-montalvo Jun 20, 2023
6fb98a9
Creates subdirectory
daniel-montalvo Jun 20, 2023
0124152
Merge branch 'main' into kengdoj-secondaryaccreqs
daniel-montalvo Jun 20, 2023
c9b2608
Bikeshed cleanup
daniel-montalvo Jun 20, 2023
6b9c187
Update act-rules-format/act-rules-format.bs
kengdoj Jul 6, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 52 additions & 9 deletions act-rules-format.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,42 +170,85 @@ Each [=accessibility requirement=] in the mapping <em class="rfc2119">must</em>
4. the conformance level associated with the accessibility requirement, if one exists.
kengdoj marked this conversation as resolved.
Show resolved Hide resolved


### Outcome Mapping ### {#outcome-mapping}
### Mapping Conformance Requirements ### {#mapping-conformance-requirements}

For each accessibility requirement in the mapping, an ACT Rule <em class="rfc2119">must</em> indicate what the [=outcomes=] of the rule mean for satisfying that accessibility requirement for that [=test subject=]. When one or more of the outcomes for a test target is `failed`, the accessibility requirements are <dfn>not satisfied</dfn> for the test subject. When all of the outcomes are `passed` or `inapplicable`, the accessibility requirements could be <dfn>satisfied</dfn>, or <dfn>further testing is needed</dfn>. Rules that can be used to determine if an accessibility requirement is *satisfied* are called <dfn>satisfying tests</dfn>.
For each accessibility requirement in the mapping, an ACT Rule <em class="rfc2119">must</em> indicate what the [=outcomes=] of the rule mean for satisfying that accessibility requirement for that [=test subject=]. When one or more of the outcomes for a test target is `failed`, the accessibility requirements are <dfn>not satisfied</dfn> for the test subject. When all of the outcomes are `passed`, the accessibility requirements would be <dfn>satisfied</dfn>. When all of the outcomes are `inapplicable`, <dfn>further testing is needed</dfn>. Rules that can be used to determine if an accessibility requirement is *satisfied* are called <dfn>satisfying tests</dfn>.
kengdoj marked this conversation as resolved.
Show resolved Hide resolved
kengdoj marked this conversation as resolved.
Show resolved Hide resolved

<div class=note>
<p>**Note:** In the [Web Content Accessibility Guidelines](https://www.w3.org/WAI/standards-guidelines/wcag/) [[WCAG]], success criteria do not evaluate to `passed`, `failed` or `inapplicable`. Rather they can be *satisfied* (or not). (See the [WCAG 2.1 definition: satisfies a success criterion](https://www.w3.org/TR/WCAG21/#dfn-satisfies).) If a success criterion is *not satisfied*, a web page can only conform if there is a conforming alternative version, as described in [WCAG 2.1 Conformance Requirement 1](https://www.w3.org/TR/WCAG21/#cc1).</p>
</div>

<aside class=example>
<header>Example accessibility requirements mapping for a rule that tests if an image button has an accessible name:</header>
<header>Example accessibility requirements mapping for a rule that tests if a form field has a non-empty accessible name:</header>
<blockquote><ul>
<li>
[Success criterion 1.1.1: Non-text content](https://www.w3.org/TR/WCAG21/#non-text-content)
[Success Criterion 4.1.2: Name, Role, Value](https://www.w3.org/TR/WCAG21/#name-role-value)
<ul>
<li>**Required for conformance** to WCAG 2.0 and WCAG 2.1 level A and higher</li>
<li>Outcome mapping: <ul>
<li>Outcome mapping:<ul>
<li>Any `failed` outcomes: not satisfied</li>
<li>All `passed` outcomes: further testing is needed</li>
<li>All `passed` outcomes: satisfied</li>
kengdoj marked this conversation as resolved.
Show resolved Hide resolved
kengdoj marked this conversation as resolved.
Show resolved Hide resolved
<li>An `inapplicable` outcome: further testing is needed</li>
</ul></li>
</ul>
</li>
</ul></blockquote>
</aside>

### Mapping Secondary Requirements (Optional) ###
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this impacts implementations, I don't think this can be optional. There could be no secondary requirements for a rule, but I think if there are success criteria that sometimes fail, they have to be listed. Otherwise what should be consistent implementations won't be.

kengdoj marked this conversation as resolved.
Show resolved Hide resolved
kengdoj marked this conversation as resolved.
Show resolved Hide resolved
kengdoj marked this conversation as resolved.
Show resolved Hide resolved

kengdoj marked this conversation as resolved.
Show resolved Hide resolved
kengdoj marked this conversation as resolved.
Show resolved Hide resolved
An ACT Rule <em class="rfc2119">may</em> show that the outcomes of the rule have related or secondary [=accessibility requirements=] for that test subject. The secondary accessibility requirements may not be required for conformance to the [=accessibility requirements document=]. When one or more of the outcomes for a test target is `failed`, the secondary accessibility requirement could be <dfn>not satisfied</dfn> for the test subject or <dfn>further testing is needed</dfn> . When all of the outcomes are `passed` or `inapplicable`, the secondary accessibility requirement could be <dfn>satisfied</dfn> or <dfn>further testing is needed</dfn>. The rule must explain the secondary relationship of the accessibility requirement to the rule.
kengdoj marked this conversation as resolved.
Show resolved Hide resolved

<aside class=example>
<header>Example accessibility requirements mapping for a rule that tests if text has minimum contrast:</header>
<blockquote><ul>
<li>
[Success criterion 4.1.2: Name, Role, Value](https://www.w3.org/TR/WCAG21/#name-role-value)
[Success criterion 1.4.3 Contrast Minimum (AA)](https://www.w3.org/TR/WCAG21/#contrast-minimum)
<ul>
<li>**Required for conformance** to WCAG 2.0 and WCAG 2.1 level A and higher</li>
<li>Outcome mapping:<ul>
<li>Any `failed` outcomes: not satisfied</li>
<li>All `passed` outcomes: further testing is needed</li>
<li>All `passed` outcomes: satisfied</li>
<li>An `inapplicable` outcome: further testing is needed</li>
</ul></li>
</ul>
</li>
<li>
[Success Criterion 1.4.6 Contrast (Enhanced) (Level AAA)](https://www.w3.org/TR/WCAG21/#contrast-enhanced)
<ul>
<li>**Secondary** to WCAG 2.0 and WCAG 2.1 level A and higher</li>
<li>Outcome mapping:<ul>
<li>Any `failed` outcomes: not satisfied</li>
<li>All `passed` outcomes: further testing is needed; SC 1.4.6 requires higher contrast ratios than SC 1.4.3</li>
kengdoj marked this conversation as resolved.
Show resolved Hide resolved
<li>An `inapplicable` outcome: further testing is needed</li>
</ul></li>
</ul>
</li>
</ul></blockquote>
</aside>

<aside class=example>
<header>Example accessibility requirements mapping for a rule that tests if a focusable element has no keyboard trap via standard navigation:</header>
<blockquote><ul>
<li>
[Success Criterion 2.1.2: No Keyboard Trap](https://www.w3.org/TR/WCAG21/#no-keyboard-trap)
<ul>
<li>**Secondary** to WCAG 2.0 and WCAG 2.1 level A and higher</li>
<li>Outcome mapping:<ul>
<li>Any `failed` outcomes: further testing is needed; success criterion permits use of non-standard navigation to exit a keyboard trap</li>
<li>All `passed` outcomes: satisfied</li>
<li>An `inapplicable` outcome: further testing is needed</li>
</ul></li>
</ul>
</li>
</ul></blockquote>
</aside>

### Mapping for Atomic Rules ### {mapping-for-atomic-rules}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this may need to be flipped. Atomic rules do not have a relationship with composite rules. I.e. you could in theory add a composite rule without updating the atomic rule. I think this requirement should be flipped, in that a composite rule must not include accessibility requirements unless they are part of all its atomic rules. I.e. the compisite rule has the exact same accessibility requirements as its atomic rules. The main difference being that what is secondary and what is not will differ.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From how I am reading it, lines 248 and 251 are saying the same thing: an atomic rule cannot map to something that the composite rule does not map to.

In 248 I read it as the atomic rule must map to a (possibly improper) subset of the composite rule's mapping. And in 251, I read it as the composite rule must map to the union of all of the mappings (conformance and secondary) present in the atomic rules.

So I'm not sure it needs to be flipped, but some clarification might be helpful.

Mapping of requirements in atomic rules that are part of composite rules is limited to the conformance and incidental accessibility requirements mapped in their composite rules.

### Mapping for Composite Rules ### {mapping-for-composite-rules}
The Accessibility Requirements mapping for Composite Rules must include all mapped (conformance and secondary) requirements in atomic rules.

### Mapping Outside WCAG ### {#mapping-outside-wcag}

Expand Down Expand Up @@ -343,7 +386,7 @@ Even concepts like headings and images can be misunderstood. These terms could r

### Applicability for Composite Rules ### {#applicability-composite}

The applicability of a composite rule is defined as the union of all applicability definitions from the rules listed in the [input rules](#input-rules). Rule authors <em class="rfc2119">may</em> omit a description of the applicability for composite rules. This can be useful if it is difficult to express the combined applicability in plain language. If the composite rule includes applicability, it <em class="rfc2119">must</em> be the union of all the applicability in the [input rules](#input-rules).
The applicability of a composite rule is defined as the union of all applicability definitions from the rules listed in the [input rules](#input-rules). Rule authors omit a description of the applicability for composite rules. This can be useful if it is difficult to express the combined applicability in plain language. If the composite rule includes applicability, it <em class="rfc2119">must</em> be the union of all the applicability in the [input rules](#input-rules).
kengdoj marked this conversation as resolved.
Show resolved Hide resolved

Note that input rules in a composite rule <em class="rfc2119">may</em> have different applicability. Because of this, not every test target applicable within the composite rule is tested by every input rule.

Expand Down