Skip to content

Commit

Permalink
Make fallback value for separator aria-valuenow consistent with scrol…
Browse files Browse the repository at this point in the history
…lbar and slider. (#1208)
  • Loading branch information
carmacleod committed May 7, 2020
1 parent 219750c commit 069c353
Showing 1 changed file with 21 additions and 47 deletions.
68 changes: 21 additions & 47 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,7 @@ <h4>Accessible Name and Description Computation</h4>
<section id="namefromauthor">
<h4>Roles Supporting Name from Author</h4>
<div id="index_fromauthor">
</div>
</section>
<section id="namefromcontent">
<h4>Roles Supporting Name from Content</h4>
Expand Down Expand Up @@ -7255,7 +7256,7 @@ <h5>Presentational Roles Conflict Resolution</h5>
<li>If <code>aria-valuemin</code> is missing or not a <a href="#valuetype_number">number</a>, it defaults to 0 (zero).</li>
<li>If <code>aria-valuemax</code> is missing or not a <a href="#valuetype_number">number</a>, it defaults to 100.</li>
</ul>
<p>Authors MUST set the <pref>aria-valuenow</pref> attribute to indicate the current thumb position. If aria-valuenow is missing or has an unexpected value, browsers MAY implement the repair techniques specified in the <a href="#authorErrorDefaultValuesTable" class="specref">section describing handling author errors in states and properties</a>, which are equivalent to the repair techniques for <code>&lt;input[type="range"]&gt;</code> in [[HTML]].</p>
<p>Authors MUST set the <pref>aria-valuenow</pref> attribute to indicate the current thumb position. If aria-valuenow is missing or has an unexpected value, browsers MAY implement the repair techniques specified in the <a href="#authorErrorDefaultValuesTable">section describing handling author errors in states and properties</a>, which are equivalent to the repair techniques for <code>&lt;input[type="range"]&gt;</code> in [[HTML]].</p>
<p>Elements with the role <code>scrollbar</code> have an implicit <pref>aria-orientation</pref> value of <code>vertical</code>.</p>
<p class="note">Assistive technologies generally will render the value of <pref>aria-valuenow</pref> as a percent of a range between the value of <pref>aria-valuemin</pref> and <pref>aria-valuemax</pref>, unless <pref>aria-valuetext</pref> is specified. It is best to set the values for <pref>aria-valuemin</pref>, <pref>aria-valuemax</pref>, and <pref>aria-valuenow</pref> in a manner that is appropriate for this calculation.</p>
</div>
Expand Down Expand Up @@ -7846,7 +7847,7 @@ <h5>Presentational Roles Conflict Resolution</h5>
<li>If <code>aria-valuemin</code> is missing or not a <a href="#valuetype_number">number</a>, it defaults to 0 (zero). </li>
<li>If <code>aria-valuemax</code> is missing or not a <a href="#valuetype_number">number</a>, it defaults to 100. </li>
</ul>
<p>Authors MUST set the <pref>aria-valuenow</pref> attribute. If aria-valuenow is missing or has an unexpected value, browsers MAY implement the repair techniques specified in the <a href="authorErrorDefaultValuesTable" class="specref">section describing handling author errors in states and properties</a>, which are equivalent to the repair techniques for <code>&lt;input[type="range"]&gt;</code> in [[HTML]].</p>
<p>Authors MUST set the <pref>aria-valuenow</pref> attribute. If aria-valuenow is missing or has an unexpected value, browsers MAY implement the repair techniques specified in the <a href="#authorErrorDefaultValuesTable">section describing handling author errors in states and properties</a>, which are equivalent to the repair techniques for <code>&lt;input[type="range"]&gt;</code> in [[HTML]].</p>
<p>Elements with the role <code>slider</code> have an implicit <pref>aria-orientation</pref> value of <code>horizontal</code>.</p>
</div>
<table class="role-features">
Expand Down Expand Up @@ -13392,11 +13393,20 @@ <h3>States and Properties</h3>
<td><code>false</code> </td>
</tr>
<tr>
<td><rref>menuitem</rref></td>
<td><sref>aria-haspopup</sref></td>
<td><rref>combobox</rref></td>
<td><sref>aria-controls</sref></td>
<td>no mapping</td>
</tr>
<tr>
<td><rref>combobox</rref></td>
<td><sref>aria-expanded</sref></td>
<td><code>false</code></td>
</tr>

<tr>
<td><rref>heading</rref></td>
<td><pref>aria-level</pref></td>
<td><code>2</code></td>
</tr>
<tr>
<td><rref>menuitemcheckbox</rref></td>
<td><sref>aria-checked</sref></td>
Expand All @@ -13412,44 +13422,18 @@ <h3>States and Properties</h3>
<td><sref>aria-checked</sref></td>
<td><code>false</code> </td>
</tr>
<tr>
<td><rref>switch</rref></td>
<td><sref>aria-checked</sref></td>
<td><code>false</code> </td>
</tr>
<tr>
<td><rref>combobox</rref></td>
<td><sref>aria-expanded</sref></td>
<td><code>false</code></td>
</tr>
<tr>
<td><rref>combobox</rref></td>
<td><sref>aria-haspopup</sref></td>
<td><code>listbox</code></td>
</tr>

<tr>
<td><rref>heading</rref></td>
<td><pref>aria-level</pref></td>
<td><code>2</code></td>
</tr>
<tr>
<td><rref>separator</rref> (if focusable)</td>
<td><pref>aria-valuenow</pref></td>
<td><code>(aria-valuemax - aria-valuemin) / 2</code></td>
</tr>
<tr>
<td><rref>scrollbar</rref></td>
<td><pref>aria-controls</pref></td>
<td>no mapping</td>
</tr>
<tr>
<td><rref>scrollbar</rref></td>
<td><pref>aria-orientation</pref></td>
<td><code>vertical</code></td>
<td><pref>aria-valuenow</pref></td>
<td>If missing or not a <a href="#valuetype_number">number</a>,<code>(aria-valuemax - aria-valuemin) / 2</code>. If present but less than <code>aria-valuemin</code>, the value of <code>aria-valuemin</code>. If present but greater than <code>aria-valuemax</code>, the value of <code>aria-valuemax</code>.</td>
</tr>
<tr>
<td><rref>scrollbar</rref></td>
<td><rref>separator</rref> (if focusable)</td>
<td><pref>aria-valuenow</pref></td>
<td>If missing or not a <a href="#valuetype_number">number</a>,<code>(aria-valuemax - aria-valuemin) / 2</code>. If present but less than <code>aria-valuemin</code>, the value of <code>aria-valuemin</code>. If present but greater than <code>aria-valuemax</code>, the value of <code>aria-valuemax</code>.</td>
</tr>
Expand All @@ -13459,19 +13443,9 @@ <h3>States and Properties</h3>
<td>If missing or not a <a href="#valuetype_number">number</a>,<code>(aria-valuemax - aria-valuemin) / 2</code>. If present but less than <code>aria-valuemin</code>, the value of <code>aria-valuemin</code>. If present but greater than <code>aria-valuemax</code>, the value of <code>aria-valuemax</code>. </td>
</tr>
<tr>
<td><rref>spinbutton</rref></td>
<td><pref>aria-valuemax</pref></td>
<td>A value indicating that the <code>spinbutton</code> has no upper bound (<a>accessibility API</a> dependent).</td>
</tr>
<tr>
<td><rref>spinbutton</rref></td>
<td><pref>aria-valuemin</pref></td>
<td>A value indicating that the <code>spinbutton</code> has no lower bound (<a>accessibility API</a> dependent).</td>
</tr>
<tr>
<td><rref>spinbutton</rref></td>
<td><pref>aria-valuenow</pref></td>
<td><code>0</code></td>
<td><rref>switch</rref></td>
<td><sref>aria-checked</sref></td>
<td><code>false</code> </td>
</tr>
</tbody>
</table>
Expand Down

0 comments on commit 069c353

Please sign in to comment.