Skip to content

Commit

Permalink
Update summary-allowances.html
Browse files Browse the repository at this point in the history
  • Loading branch information
scottaohara authored Feb 7, 2023
1 parent 0d8fb13 commit 8666a17
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions html-aria/tests/summary-allowances.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<title>ARIA in HTML - Test Cases</title>
<link rel="stylesheet" href="../results/styles.css">
<style>
body{
body {
font-size: 1em;
}
.roleTest {
Expand Down Expand Up @@ -86,17 +86,25 @@ <h3>Test 2</h3>
<p>Authors MAY specify any role on a summary element, so long as that summary element is not the 'summay for its parent details'.</p>

<div class="testcase">
<p>The second summary element does not pass the algorithm to be a summary for its parent details, so it is exposed as a generic.</p>
<p>The summary elements beyond the first instance do not pass the algorithm to be a summary for its parent details,
so they are exposed as generic elements.</p>
<details open>
<summary>no allowed role on this summary</summary>
<summary role=paragraph>this summary has a paragraph role, which is fine.</summary>
<summary role=button tabindex=0>this summary has a button role, which is also fine.</summary>
</details>
</div>

<div class="testcase">
<p>The following summary element is not a child of a details element, and thus is implicitly exposed as a generic.</p>
<summary role=paragraph>this summary has a paragraph role, which is fine.</summary>
</div>
<p><strong>Expected result:</strong>
<br>Conformance checkers need not throw an error for summary elements that are not the first
instance of the element type within a details element,
or are not a descendant element of a details element.

</p>

</div>
</div>
Expand Down

0 comments on commit 8666a17

Please sign in to comment.