From 3a2d9779e5ad88730971143e541902d36fba7e4d Mon Sep 17 00:00:00 2001
From: Valerie R Young
Date: Thu, 14 Mar 2019 13:52:33 -0400
Subject: [PATCH 01/62] Draft range related properties
---
range_related_properties.md | 149 ++++++++++++++++++++++++++++++++++++
1 file changed, 149 insertions(+)
create mode 100644 range_related_properties.md
diff --git a/range_related_properties.md b/range_related_properties.md
new file mode 100644
index 0000000000..2952320511
--- /dev/null
+++ b/range_related_properties.md
@@ -0,0 +1,149 @@
+# Range Related Properties
+
+The range related properties are used to fully present and describe an element whose value can be one of a range of values to assistive technologies. These properties communicate the maximum and minimum values for the element and the element's current value.
+
+The range properties can also be used to fully present and describe an element whose value can be one of a list of non-numeric values. In this scenario, all possible text values of the element will be programmatically mapped to numbers within the numeric range.
+
+These attributes are used with the following roles:
+* slider
+* spinbutton
+* progressbar
+* meter
+* scrollbar
+
+These proprieties are also used for the separator role, but only if the element is focusable.
+
+Range Related Property Table
+
+| Property | Definition |
+| --- | --- |
+| `aria-valuemin` | Defines the minimum value in the range. |
+| `aria-valuemax` | Defines the maximum value in the range. |
+| `aria-valuenow` | Defines the value of the element. This value is always a number between `aria-valuemin` and `aria-valuemax`. |
+| `aria-valuetext` | Defines a description of the value of the element. |
+
+## Using `aria-valuemin` and `aria-valuemax`
+
+When an element's possible values are contained within a known range, the attributes `aria-valuemin` and `aria-valuemax` are used to inform assistive technologies of the minimum and maximum values of the range. When using these properties, always set `aria-valuemin` to the lowest value of the range.
+
+## Using `aria-valuenow`
+
+The attribute `aria-valuenow` is used to inform assistive technologies of the current value of an element. When `aria-valuemin` and `aria-valuemax` are specified, set `aria-valuenow` to a numeric value that is within the range define by `aria-valuemin` and `aria-valuemax`.
+
+## Using `aria-valuetext`
+
+When the element's values are contained within a range but those values are not numeric (such as "small", "medium" and "large"), `aria-valuetext` is used to surface the text value to assistive technologies. Only use `aria-valuetext` when `aria-valuenow` does not have meaning for the user because using `aria-valuetext` will prevent assistive technologies from communicating `aria-valuenow`.
+
+## slider Role
+
+`aria-valuenow`, `aria-valuemin` and `aria-valuemax` are all required attributes for the slider role. `aria-valuetext` can be used when appropriate. Detailed description of the slider role can be found in the slider design pattern and slider (multi-thumb) design pattern.
+
+### Example with numeric range
+
+This example is a temperature controller. `aria-valuetext` is not be used as the number value in `aria-valuenow` is meaningful to the user.
+
+```
+
+
+
+
+
+```
+
+The slider example above can be made using the HTML input type=range element.
+
+```
+
+```
+
+### Example with `aria-valuetext`
+
+This example is a fan control. The `aria-valuenow` value is "1", which is not meaningful to the user. The assistive technology will surface the value of `aria-valuetext` ("low") instead.
+
+```
+
+
+
+
Off
+
Low
+
Medium
+
High
+
+
+```
+
+## spinbutton Role
+
+`aria-valuenow`, `aria-valuemin` and `aria-valuemax` are all required attributes for the spinbutton role. `aria-valuetext` can be used when appropriate.
+
+This example sets the price of paperclips in cents.
+
+```
+
+
+
+ Price per paperclip: $0.50
+
+```
+
+The slider example above can be made using the native HTML input type="number" element.
+
+```
+
+Price per paperclip:
+$
+```
+
+```
+
+```
+
+
+## progressbar Role
+
+`aria-valuenow`, `aria-valuemin` and `aria-valuemax` are not required attributes for the progressbar role, however, but the attributes might be necessary for communicating the state of a progress bar to assistive technologies.
+
+### Example: progressbar
+
+This is an example of a progressbar represent by an SVG. The range properties are necessary to full explain the widget to assistive technologies.
+
+```
+
Loading:
+
+
+
+
+```
+
+The progress bar example can be made using the native HTML progress element.
+
+```
+
+
+```
+
+## scrollbar Role
+
+`aria-valuenow`, `aria-valuemin` and aria-value max are all required attributes for the scrollbar role. The value of `aria-valuenow` will generally be exposed as a percentage between `aria-valuemin` and `aria-valuemax` calculated by assistive technologies.
+
+```
+
+```
\ No newline at end of file
From 7955203b2c11949052d62867b39280240bce767f Mon Sep 17 00:00:00 2001
From: Valerie R Young
Date: Thu, 14 Mar 2019 14:06:55 -0400
Subject: [PATCH 02/62] Minor fixes
---
range_related_properties.md | 32 +++++++++++++++-----------------
1 file changed, 15 insertions(+), 17 deletions(-)
diff --git a/range_related_properties.md b/range_related_properties.md
index 2952320511..8df4ab85dc 100644
--- a/range_related_properties.md
+++ b/range_related_properties.md
@@ -5,13 +5,13 @@ The range related properties are used to fully present and describe an element w
The range properties can also be used to fully present and describe an element whose value can be one of a list of non-numeric values. In this scenario, all possible text values of the element will be programmatically mapped to numbers within the numeric range.
These attributes are used with the following roles:
-* slider
-* spinbutton
-* progressbar
-* meter
-* scrollbar
+* `slider`
+* `spinbutton`
+* `progressbar`
+* `meter`
+* `scrollbar`
-These proprieties are also used for the separator role, but only if the element is focusable.
+These proprieties are also used for the `separator` role, but only if the element is focusable.
Range Related Property Table
@@ -34,9 +34,9 @@ The attribute `aria-valuenow` is used to inform assistive technologies of the cu
When the element's values are contained within a range but those values are not numeric (such as "small", "medium" and "large"), `aria-valuetext` is used to surface the text value to assistive technologies. Only use `aria-valuetext` when `aria-valuenow` does not have meaning for the user because using `aria-valuetext` will prevent assistive technologies from communicating `aria-valuenow`.
-## slider Role
+## `slider` Role
-`aria-valuenow`, `aria-valuemin` and `aria-valuemax` are all required attributes for the slider role. `aria-valuetext` can be used when appropriate. Detailed description of the slider role can be found in the slider design pattern and slider (multi-thumb) design pattern.
+`aria-valuenow`, `aria-valuemin` and `aria-valuemax` are all required attributes for the `slider` role. `aria-valuetext` can be used when appropriate. Detailed description of the `slider` role can be found in the [slider design pattern](https://w3c.github.io/aria-practices/#slider) and [slider (multi-thumb) design pattern](https://w3c.github.io/aria-practices/#slidertwothumb).
### Example with numeric range
@@ -74,9 +74,9 @@ This example is a fan control. The `aria-valuenow` value is "1", which is not me
```
-## spinbutton Role
+## `spinbutton` Role
-`aria-valuenow`, `aria-valuemin` and `aria-valuemax` are all required attributes for the spinbutton role. `aria-valuetext` can be used when appropriate.
+`aria-valuenow`, `aria-valuemin` and `aria-valuemax` are all required attributes for the `spinbutton` role. `aria-valuetext` can be used when appropriate.
This example sets the price of paperclips in cents.
@@ -101,13 +101,11 @@ $
```
-## progressbar Role
+## `progressbar` Role
-`aria-valuenow`, `aria-valuemin` and `aria-valuemax` are not required attributes for the progressbar role, however, but the attributes might be necessary for communicating the state of a progress bar to assistive technologies.
+`aria-valuenow`, `aria-valuemin` and `aria-valuemax` are not required attributes for the `progressbar` role, however, but the attributes might be necessary for communicating the state of a progress bar to assistive technologies.
-### Example: progressbar
-
-This is an example of a progressbar represent by an SVG. The range properties are necessary to full explain the widget to assistive technologies.
+This is an example of a progress bar represent by an SVG. The range properties are necessary to full explain the widget to assistive technologies.
```
Loading:
@@ -127,9 +125,9 @@ The progress bar example can be made using the native HTML progress element.
```
-## scrollbar Role
+## `scrollbar` Role
-`aria-valuenow`, `aria-valuemin` and aria-value max are all required attributes for the scrollbar role. The value of `aria-valuenow` will generally be exposed as a percentage between `aria-valuemin` and `aria-valuemax` calculated by assistive technologies.
+`aria-valuenow`, `aria-valuemin` and `aria-valuemax` are all required attributes for the `scrollbar` role. The value of `aria-valuenow` will generally be exposed as a percentage between `aria-valuemin` and `aria-valuemax` calculated by assistive technologies.
```
From b382e78318e93e133885a80248160fe82045d3ea Mon Sep 17 00:00:00 2001
From: Simon Pieters
Date: Tue, 23 Apr 2019 20:02:14 +0200
Subject: [PATCH 03/62] Address feedback
---
range_related_properties.md | 45 +++++++++++++++++++------------------
1 file changed, 23 insertions(+), 22 deletions(-)
diff --git a/range_related_properties.md b/range_related_properties.md
index 8df4ab85dc..e2ea9f5a21 100644
--- a/range_related_properties.md
+++ b/range_related_properties.md
@@ -1,30 +1,36 @@
# Range Related Properties
-The range related properties are used to fully present and describe an element whose value can be one of a range of values to assistive technologies. These properties communicate the maximum and minimum values for the element and the element's current value.
+ARIA provides the following four properties for communicating on the attributes of a range widget:
-The range properties can also be used to fully present and describe an element whose value can be one of a list of non-numeric values. In this scenario, all possible text values of the element will be programmatically mapped to numbers within the numeric range.
+| Property | Definition |
+| --- | --- |
+| `aria-valuemin` | Defines the minimum value in the range. |
+| `aria-valuemax` | Defines the maximum value in the range. |
+| `aria-valuenow` | Defines the value of the element. This value is a number between `aria-valuemin` and `aria-valuemax` (if they are present). |
+| `aria-valuetext` | Defines a description of the value of the element. |
+
+The range related properties are used to describe an element whose value can be one of a range of values to assistive technologies. These properties communicate the maximum and minimum values for the element and the element's current value.
+
+The range properties can also be used to describe an element whose value can be one of a list of non-numeric values. In this scenario, all possible text values of the element will be programmatically mapped to numbers within the numeric range by the author.
These attributes are used with the following roles:
+
* `slider`
* `spinbutton`
* `progressbar`
* `meter`
* `scrollbar`
+* `separator` (if the element is focusable)
-These proprieties are also used for the `separator` role, but only if the element is focusable.
-
-Range Related Property Table
+## Using `aria-valuemin` and `aria-valuemax`
-| Property | Definition |
-| --- | --- |
-| `aria-valuemin` | Defines the minimum value in the range. |
-| `aria-valuemax` | Defines the maximum value in the range. |
-| `aria-valuenow` | Defines the value of the element. This value is always a number between `aria-valuemin` and `aria-valuemax`. |
-| `aria-valuetext` | Defines a description of the value of the element. |
+When an element's possible values are contained within a known range, the attributes `aria-valuemin` and `aria-valuemax` are used to inform assistive technologies of the minimum and maximum values of the range. When using these properties, set `aria-valuemin` to the lowest value of the range and `aria-valuemax` to the greatest value.
-## Using `aria-valuemin` and `aria-valuemax`
+When the range is unknown, omit both `aria-valuemin` and `aria-valuemax`. An example of such a widget is an indeterminate progress bar.
-When an element's possible values are contained within a known range, the attributes `aria-valuemin` and `aria-valuemax` are used to inform assistive technologies of the minimum and maximum values of the range. When using these properties, always set `aria-valuemin` to the lowest value of the range.
+```
+
+```
## Using `aria-valuenow`
@@ -38,9 +44,7 @@ When the element's values are contained within a range but those values are not
`aria-valuenow`, `aria-valuemin` and `aria-valuemax` are all required attributes for the `slider` role. `aria-valuetext` can be used when appropriate. Detailed description of the `slider` role can be found in the [slider design pattern](https://w3c.github.io/aria-practices/#slider) and [slider (multi-thumb) design pattern](https://w3c.github.io/aria-practices/#slidertwothumb).
-### Example with numeric range
-
-This example is a temperature controller. `aria-valuetext` is not be used as the number value in `aria-valuenow` is meaningful to the user.
+The following example is a temperature controller. `aria-valuetext` is not be used as the number value in `aria-valuenow` is meaningful to the user.
```
@@ -57,9 +61,7 @@ The slider example above can be made using the HTML input type=range element.
```
-### Example with `aria-valuetext`
-
-This example is a fan control. The `aria-valuenow` value is "1", which is not meaningful to the user. The assistive technology will surface the value of `aria-valuetext` ("low") instead.
+The following example is a fan control. The `aria-valuenow` value is "1", which is not meaningful to the user. The assistive technology will surface the value of `aria-valuetext` ("low") instead.
```
@@ -88,7 +90,7 @@ This example sets the price of paperclips in cents.
```
-The slider example above can be made using the native HTML input type="number" element.
+The slider example above can be made using the native HTML input type="number" element.
```
@@ -100,7 +102,6 @@ $
```
-
## `progressbar` Role
`aria-valuenow`, `aria-valuemin` and `aria-valuemax` are not required attributes for the `progressbar` role, however, but the attributes might be necessary for communicating the state of a progress bar to assistive technologies.
@@ -144,4 +145,4 @@ The progress bar example can be made using the native HTML progress element.
aria-valuenow="25">
-```
\ No newline at end of file
+```
From 9eefa62d87e27f6163bcadb59413e32b3163e225 Mon Sep 17 00:00:00 2001
From: Valerie R Young
Date: Thu, 20 Jun 2019 07:01:11 -0400
Subject: [PATCH 04/62] Review feedback
---
range_related_properties.md | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
diff --git a/range_related_properties.md b/range_related_properties.md
index e2ea9f5a21..92ed946744 100644
--- a/range_related_properties.md
+++ b/range_related_properties.md
@@ -26,11 +26,7 @@ These attributes are used with the following roles:
When an element's possible values are contained within a known range, the attributes `aria-valuemin` and `aria-valuemax` are used to inform assistive technologies of the minimum and maximum values of the range. When using these properties, set `aria-valuemin` to the lowest value of the range and `aria-valuemax` to the greatest value.
-When the range is unknown, omit both `aria-valuemin` and `aria-valuemax`. An example of such a widget is an indeterminate progress bar.
-
-```
-
-```
+When the range is unknown, omit both `aria-valuemin` and `aria-valuemax`. See an example of a indeterminate range element [indeterminate progress bar]().
## Using `aria-valuenow`
@@ -109,8 +105,8 @@ $
This is an example of a progress bar represent by an SVG. The range properties are necessary to full explain the widget to assistive technologies.
```
-
Loading:
-
+
Loading:
+
```
+To represent an indeterminate progress bar where the value range is unknown, omit the `aria-valuemin`, `aria-valuemax`, and `aria-valuenow` attributes.
+
+```
+
+```
+
The progress bar example can be made using the native HTML progress element.
```
@@ -126,6 +128,7 @@ The progress bar example can be made using the native HTML progress element.
```
+
## `scrollbar` Role
`aria-valuenow`, `aria-valuemin` and `aria-valuemax` are all required attributes for the `scrollbar` role. The value of `aria-valuenow` will generally be exposed as a percentage between `aria-valuemin` and `aria-valuemax` calculated by assistive technologies.
@@ -146,3 +149,5 @@ The progress bar example can be made using the native HTML progress element.
```
+
+If `aria-valuemin` and `aria-valuemax` are omitted, then the browser will use the default values of 0 and 100, respectively.
\ No newline at end of file
From 8065be095dee00c8120d2e96d1e16e3f9e698fa9 Mon Sep 17 00:00:00 2001
From: Simon Pieters
Date: Fri, 30 Aug 2019 15:52:37 +0200
Subject: [PATCH 05/62] Move section into aria-practices.html
---
aria-practices.html | 131 ++++++++++++++++++++++++++++++
range_related_properties.md | 153 ------------------------------------
2 files changed, 131 insertions(+), 153 deletions(-)
delete mode 100644 range_related_properties.md
diff --git a/aria-practices.html b/aria-practices.html
index 7a6b53098a..118b6ae315 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6425,6 +6425,137 @@
Indicating sort order with aria-sort
+
+
Range Related Properties
+
ARIA provides the following four properties for communicating on the attributes of a range widget:
+
+
+
+
Property
+
Definition
+
+
+
+
+
aria-valuemin
+
Defines the minimum value in the range.
+
+
+
aria-valuemax
+
Defines the maximum value in the range.
+
+
+
aria-valuenow
+
Defines the value of the element. This value is a number between aria-valuemin and aria-valuemax (if they are present).
+
+
+
aria-valuetext
+
Defines a description of the value of the element.
+
+
+
+
The range related properties are used to describe an element whose value can be one of a range of values to assistive technologies. These properties communicate the maximum and minimum values for the element and the element's current value.
+
The range properties can also be used to describe an element whose value can be one of a list of non-numeric values. In this scenario, all possible text values of the element will be programmatically mapped to numbers within the numeric range by the author.
+
These attributes are used with the following roles:
+
+
slider
+
spinbutton
+
progressbar
+
meter
+
scrollbar
+
separator (if the element is focusable)
+
+
+
+
Using aria-valuemin and aria-valuemax
+
When an element's possible values are contained within a known range, the attributes aria-valuemin and aria-valuemax are used to inform assistive technologies of the minimum and maximum values of the range. When using these properties, set aria-valuemin to the lowest value of the range and aria-valuemax to the greatest value.
+
When the range is unknown, omit both aria-valuemin and aria-valuemax. See an example of a indeterminate range element indeterminate progress bar.
+
Using aria-valuenow
+
The attribute aria-valuenow is used to inform assistive technologies of the current value of an element. When aria-valuemin and aria-valuemax are specified, set aria-valuenow to a numeric value that is within the range define by aria-valuemin and aria-valuemax.
+
Using aria-valuetext
+
When the element's values are contained within a range but those values are not numeric (such as "small", "medium" and "large"), aria-valuetext is used to surface the text value to assistive technologies. Only use aria-valuetext when aria-valuenow does not have meaning for the user because using aria-valuetext will prevent assistive technologies from communicating aria-valuenow.
+
+
+
+
slider Role
+
aria-valuenow, aria-valuemin and aria-valuemax are all required attributes for the slider role. aria-valuetext can be used when appropriate. Detailed description of the slider role can be found in the slider design pattern and slider (multi-thumb) design pattern.
+
The following example is a temperature controller. aria-valuetext is not be used as the number value in aria-valuenow is meaningful to the user.
The following example is a fan control. The aria-valuenow value is "1", which is not meaningful to the user. The assistive technology will surface the value of aria-valuetext ("low") instead.
<label>Price per paperclip: $<input type="number" min="0.01" value="0.5" max="2" step="0.01"></label>
+
+
+
+
progressbar Role
+
aria-valuenow, aria-valuemin and aria-valuemax are not required attributes for the progressbar role, however, but the attributes might be necessary for communicating the state of a progress bar to assistive technologies.
+
This is an example of a progress bar represent by an SVG. The range properties are necessary to full explain the widget to assistive technologies.
aria-valuenow, aria-valuemin and aria-valuemax are all required attributes for the scrollbar role. The value of aria-valuenow will generally be exposed as a percentage between aria-valuemin and aria-valuemax calculated by assistive technologies.
If aria-valuemin and aria-valuemax are omitted, then the browser will use the default values of 0 and 100, respectively.
+
+
+
Intentionally Hiding Semantics with the presentation Role
diff --git a/range_related_properties.md b/range_related_properties.md
deleted file mode 100644
index 92ed946744..0000000000
--- a/range_related_properties.md
+++ /dev/null
@@ -1,153 +0,0 @@
-# Range Related Properties
-
-ARIA provides the following four properties for communicating on the attributes of a range widget:
-
-| Property | Definition |
-| --- | --- |
-| `aria-valuemin` | Defines the minimum value in the range. |
-| `aria-valuemax` | Defines the maximum value in the range. |
-| `aria-valuenow` | Defines the value of the element. This value is a number between `aria-valuemin` and `aria-valuemax` (if they are present). |
-| `aria-valuetext` | Defines a description of the value of the element. |
-
-The range related properties are used to describe an element whose value can be one of a range of values to assistive technologies. These properties communicate the maximum and minimum values for the element and the element's current value.
-
-The range properties can also be used to describe an element whose value can be one of a list of non-numeric values. In this scenario, all possible text values of the element will be programmatically mapped to numbers within the numeric range by the author.
-
-These attributes are used with the following roles:
-
-* `slider`
-* `spinbutton`
-* `progressbar`
-* `meter`
-* `scrollbar`
-* `separator` (if the element is focusable)
-
-## Using `aria-valuemin` and `aria-valuemax`
-
-When an element's possible values are contained within a known range, the attributes `aria-valuemin` and `aria-valuemax` are used to inform assistive technologies of the minimum and maximum values of the range. When using these properties, set `aria-valuemin` to the lowest value of the range and `aria-valuemax` to the greatest value.
-
-When the range is unknown, omit both `aria-valuemin` and `aria-valuemax`. See an example of a indeterminate range element [indeterminate progress bar]().
-
-## Using `aria-valuenow`
-
-The attribute `aria-valuenow` is used to inform assistive technologies of the current value of an element. When `aria-valuemin` and `aria-valuemax` are specified, set `aria-valuenow` to a numeric value that is within the range define by `aria-valuemin` and `aria-valuemax`.
-
-## Using `aria-valuetext`
-
-When the element's values are contained within a range but those values are not numeric (such as "small", "medium" and "large"), `aria-valuetext` is used to surface the text value to assistive technologies. Only use `aria-valuetext` when `aria-valuenow` does not have meaning for the user because using `aria-valuetext` will prevent assistive technologies from communicating `aria-valuenow`.
-
-## `slider` Role
-
-`aria-valuenow`, `aria-valuemin` and `aria-valuemax` are all required attributes for the `slider` role. `aria-valuetext` can be used when appropriate. Detailed description of the `slider` role can be found in the [slider design pattern](https://w3c.github.io/aria-practices/#slider) and [slider (multi-thumb) design pattern](https://w3c.github.io/aria-practices/#slidertwothumb).
-
-The following example is a temperature controller. `aria-valuetext` is not be used as the number value in `aria-valuenow` is meaningful to the user.
-
-```
-
-
-
-
-
-```
-
-The slider example above can be made using the HTML input type=range element.
-
-```
-
-```
-
-The following example is a fan control. The `aria-valuenow` value is "1", which is not meaningful to the user. The assistive technology will surface the value of `aria-valuetext` ("low") instead.
-
-```
-
-
-
-
Off
-
Low
-
Medium
-
High
-
-
-```
-
-## `spinbutton` Role
-
-`aria-valuenow`, `aria-valuemin` and `aria-valuemax` are all required attributes for the `spinbutton` role. `aria-valuetext` can be used when appropriate.
-
-This example sets the price of paperclips in cents.
-
-```
-
-
-
- Price per paperclip: $0.50
-
-```
-
-The slider example above can be made using the native HTML input type="number" element.
-
-```
-
-Price per paperclip:
-$
-```
-
-```
-
-```
-
-## `progressbar` Role
-
-`aria-valuenow`, `aria-valuemin` and `aria-valuemax` are not required attributes for the `progressbar` role, however, but the attributes might be necessary for communicating the state of a progress bar to assistive technologies.
-
-This is an example of a progress bar represent by an SVG. The range properties are necessary to full explain the widget to assistive technologies.
-
-```
-
Loading:
-
-
-
-
-```
-
-To represent an indeterminate progress bar where the value range is unknown, omit the `aria-valuemin`, `aria-valuemax`, and `aria-valuenow` attributes.
-
-```
-
-```
-
-The progress bar example can be made using the native HTML progress element.
-
-```
-
-
-```
-
-
-## `scrollbar` Role
-
-`aria-valuenow`, `aria-valuemin` and `aria-valuemax` are all required attributes for the `scrollbar` role. The value of `aria-valuenow` will generally be exposed as a percentage between `aria-valuemin` and `aria-valuemax` calculated by assistive technologies.
-
-```
-
-```
-
-If `aria-valuemin` and `aria-valuemax` are omitted, then the browser will use the default values of 0 and 100, respectively.
\ No newline at end of file
From 2f8d7a1628832c7e1c8b016623afb4f8d846aece Mon Sep 17 00:00:00 2001
From: Simon Pieters
Date: Tue, 3 Dec 2019 14:45:20 +0100
Subject: [PATCH 06/62] Fix a broken link
---
aria-practices.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/aria-practices.html b/aria-practices.html
index 118b6ae315..99c2622eee 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6469,7 +6469,7 @@
Range Related Properties
Using aria-valuemin and aria-valuemax
When an element's possible values are contained within a known range, the attributes aria-valuemin and aria-valuemax are used to inform assistive technologies of the minimum and maximum values of the range. When using these properties, set aria-valuemin to the lowest value of the range and aria-valuemax to the greatest value.
-
When the range is unknown, omit both aria-valuemin and aria-valuemax. See an example of a indeterminate range element indeterminate progress bar.
+
When the range is unknown, omit both aria-valuemin and aria-valuemax. An example of an indeterminate range element is an indeterminate progress bar, covered in the progressbar Role section below.
Using aria-valuenow
The attribute aria-valuenow is used to inform assistive technologies of the current value of an element. When aria-valuemin and aria-valuemax are specified, set aria-valuenow to a numeric value that is within the range define by aria-valuemin and aria-valuemax.
When an element's possible values are contained within a known range, the attributes aria-valuemin and aria-valuemax are used to inform assistive technologies of the minimum and maximum values of the range. When using these properties, set aria-valuemin to the lowest value of the range and aria-valuemax to the greatest value.
When the range is unknown, omit both aria-valuemin and aria-valuemax. An example of an indeterminate range element is an indeterminate progress bar, covered in the progressbar Role section below.
-
Using aria-valuenow
+
+
+
+
Using aria-valuenow
The attribute aria-valuenow is used to inform assistive technologies of the current value of an element. When aria-valuemin and aria-valuemax are specified, set aria-valuenow to a numeric value that is within the range define by aria-valuemin and aria-valuemax.
-
Using aria-valuetext
+
+
+
+
Using aria-valuetext
When the element's values are contained within a range but those values are not numeric (such as "small", "medium" and "large"), aria-valuetext is used to surface the text value to assistive technologies. Only use aria-valuetext when aria-valuenow does not have meaning for the user because using aria-valuetext will prevent assistive technologies from communicating aria-valuenow.
The following example is a fan control. The aria-valuenow value is "1", which is not meaningful to the user. The assistive technology will surface the value of aria-valuetext ("low") instead.
<div class="rail">
@@ -6508,7 +6514,7 @@
spinbutton Role
<button id="raise-price">Raise</button>
Price per paperclip: $<span id="price">0.50</span>
</div>
-
The slider example above can be made using the native HTML input type="number" element.
+
The slider example above can be made using the native HTML <input type="number"> element.
From ff195f26d77bb4e487cd3ae14e131c890c09fa2b Mon Sep 17 00:00:00 2001
From: Simon Pieters
Date: Tue, 3 Dec 2019 15:35:46 +0100
Subject: [PATCH 08/62] Rename some headings, add a table for valuemin/max
---
aria-practices.html | 31 ++++++++++++++++++++++++-------
1 file changed, 24 insertions(+), 7 deletions(-)
diff --git a/aria-practices.html b/aria-practices.html
index e2d39c0288..d6026bfb22 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6426,7 +6426,8 @@
Indicating sort order with aria-sort
-
Range Related Properties
+
Communicating Value for Range Widgets
+
A range widget is a widget that can have a value within a range of possible values.
ARIA provides the following four properties for communicating on the attributes of a range widget:
@@ -6456,6 +6457,7 @@
Range Related Properties
The range related properties are used to describe an element whose value can be one of a range of values to assistive technologies. These properties communicate the maximum and minimum values for the element and the element's current value.
The range properties can also be used to describe an element whose value can be one of a list of non-numeric values. In this scenario, all possible text values of the element will be programmatically mapped to numbers within the numeric range by the author.
+
These attributes are used with the following roles:
slider
@@ -6470,11 +6472,26 @@
Range Related Properties
Using aria-valuemin and aria-valuemax
When an element's possible values are contained within a known range, the attributes aria-valuemin and aria-valuemax are used to inform assistive technologies of the minimum and maximum values of the range. When using these properties, set aria-valuemin to the lowest value of the range and aria-valuemax to the greatest value.
When the range is unknown, omit both aria-valuemin and aria-valuemax. An example of an indeterminate range element is an indeterminate progress bar, covered in the progressbar Role section below.
+
For the different roles where these properties are allowed, some properties are required, and some have default values, as shown in the following table:
+
+
+
Role
Default aria-valuemin
Default aria-valuemax
Required?
+
+
+
slider
0
100
No
+
spinbutton
none
none
No
+
progressbar
0
100
No
+
meter
none
none
Yes
+
scrollbar
0
100
No
+
separator
0
100
No
+
+
Using aria-valuenow
-
The attribute aria-valuenow is used to inform assistive technologies of the current value of an element. When aria-valuemin and aria-valuemax are specified, set aria-valuenow to a numeric value that is within the range define by aria-valuemin and aria-valuemax.
+
The aria-valuenow property is used to inform assistive technologies of the current value of an element. When aria-valuemin and aria-valuemax are specified, set aria-valuenow to a numeric value that is within the range define by aria-valuemin and aria-valuemax.
+
For indeterminate ranges, such as indeterminate process bars, omit the aria-valuenow property.
@@ -6483,8 +6500,8 @@
Using aria-valuetext
-
slider Role
-
aria-valuenow, aria-valuemin and aria-valuemax are all required attributes for the slider role. aria-valuetext can be used when appropriate. Detailed description of the slider role can be found in the slider design pattern and slider (multi-thumb) design pattern.
+
Range properties with sliders
+
aria-valuenow, aria-valuemin and aria-valuemax are all required attributes for the slider role. aria-valuetext can be used when appropriate. Detailed description of the slider role can be found in the slider design pattern and slider (multi-thumb) design pattern.
The following example is a temperature controller. aria-valuetext is not be used as the number value in aria-valuenow is meaningful to the user.
aria-valuenow, aria-valuemin and aria-valuemax are not required attributes for the progressbar role, however, but the attributes might be necessary for communicating the state of a progress bar to assistive technologies.
This is an example of a progress bar represent by an SVG. The range properties are necessary to full explain the widget to assistive technologies.
<div>Loading:
@@ -6542,7 +6559,7 @@
progressbar Role
-
scrollbar Role
+
Range properties with scrollbars
aria-valuenow, aria-valuemin and aria-valuemax are all required attributes for the scrollbar role. The value of aria-valuenow will generally be exposed as a percentage between aria-valuemin and aria-valuemax calculated by assistive technologies.
The aria-valuenow property is used to inform assistive technologies of the current value of an element. When aria-valuemin and aria-valuemax are specified, set aria-valuenow to a numeric value that is within the range define by aria-valuemin and aria-valuemax.
-
For indeterminate ranges, such as indeterminate process bars, omit the aria-valuenow property.
+
The aria-valuenow property is used to inform assistive technologies of the current value of an element. When aria-valuemin and aria-valuemax are specified, and the value is known, set aria-valuenow to a numeric value that is within the range define by aria-valuemin and aria-valuemax.
+
When the value is unknown, omit the aria-valuenow property.
+
The aria-valuenow property is required for the scrollbar, separator (if the element is focusable), and slider roles.
From 33fa65e846d2c4bc3020d36daf42a4477b0095f3 Mon Sep 17 00:00:00 2001
From: Simon Pieters
Date: Tue, 3 Dec 2019 15:55:06 +0100
Subject: [PATCH 10/62] Formatting of markup
---
aria-practices.html | 185 +++++++++++++++++++++++++++++++++++++-------
1 file changed, 155 insertions(+), 30 deletions(-)
diff --git a/aria-practices.html b/aria-practices.html
index fc6c2a27f6..ecad635fc5 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6427,8 +6427,15 @@
Indicating sort order with aria-sort
Communicating Value for Range Widgets
-
A range widget is a widget that can have a value within a range of possible values.
-
ARIA provides the following four properties for communicating on the attributes of a range widget:
+
+
+ A range widget is a widget that can have a value within a range of possible values.
+
+
+
+ ARIA provides the following four properties for communicating on the attributes of a range widget:
+
+
@@ -6455,10 +6462,21 @@
Communicating Value for Range Widgets
-
The range related properties are used to describe an element whose value can be one of a range of values to assistive technologies. These properties communicate the maximum and minimum values for the element and the element's current value.
-
The range properties can also be used to describe an element whose value can be one of a list of non-numeric values. In this scenario, all possible text values of the element will be programmatically mapped to numbers within the numeric range by the author.
-
These attributes are used with the following roles:
+
+ The range related properties are used to describe an element whose value can be one of a range of values to assistive technologies.
+ These properties communicate the maximum and minimum values for the element and the element's current value.
+
+
+
+ The range properties can also be used to describe an element whose value can be one of a list of non-numeric values.
+ In this scenario, all possible text values of the element will be programmatically mapped to numbers within the numeric range by the author.
+
+
+
+ These attributes are used with the following roles:
+
+
slider
spinbutton
@@ -6470,40 +6488,110 @@
Communicating Value for Range Widgets
Using aria-valuemin and aria-valuemax
-
When an element's possible values are contained within a known range, the attributes aria-valuemin and aria-valuemax are used to inform assistive technologies of the minimum and maximum values of the range. When using these properties, set aria-valuemin to the lowest value of the range and aria-valuemax to the greatest value.
-
When the range is unknown, omit both aria-valuemin and aria-valuemax. An example of an indeterminate range element is an indeterminate progress bar, covered in the progressbar Role section below.
-
For the different roles where these properties are allowed, some properties are required, and some have default values, as shown in the following table:
+
+
+ When an element's possible values are contained within a known range, the attributes aria-valuemin and aria-valuemax are used to inform assistive technologies of the minimum and maximum values of the range.
+ When using these properties, set aria-valuemin to the lowest value of the range and aria-valuemax to the greatest value.
+
+
+
+ When the range is unknown, omit both aria-valuemin and aria-valuemax.
+ An example of an indeterminate range element is an indeterminate progress bar, covered in the progressbar Role section below.
+
+
+
+ For the different roles where these properties are allowed, some properties are required, and some have default values, as shown in the following table:
+
+
-
Role
Default aria-valuemin
Default aria-valuemax
Required?
+
+
Role
+
Default aria-valuemin
+
Default aria-valuemax
+
Required?
+
-
slider
0
100
No
-
spinbutton
none
none
No
-
progressbar
0
100
No
-
meter
none
none
Yes
-
scrollbar
0
100
No
-
separator
0
100
No
+
+
slider
+
0
+
100
+
No
+
+
+
spinbutton
+
none
+
none
+
No
+
+
+
progressbar
+
0
+
100
+
No
+
+
+
meter
+
none
+
none
+
Yes
+
+
+
scrollbar
+
0
+
100
+
No
+
+
+
separator
+
0
+
100
+
No
+
Using aria-valuenow
-
The aria-valuenow property is used to inform assistive technologies of the current value of an element. When aria-valuemin and aria-valuemax are specified, and the value is known, set aria-valuenow to a numeric value that is within the range define by aria-valuemin and aria-valuemax.
-
When the value is unknown, omit the aria-valuenow property.
-
The aria-valuenow property is required for the scrollbar, separator (if the element is focusable), and slider roles.
+
+
+ The aria-valuenow property is used to inform assistive technologies of the current value of an element.
+ When aria-valuemin and aria-valuemax are specified, and the value is known,
+ set aria-valuenow to a numeric value that is within the range define by aria-valuemin and aria-valuemax.
+
+
+
+ When the value is unknown, omit the aria-valuenow property.
+
+
+
+ The aria-valuenow property is required for the scrollbar, separator (if the element is focusable), and slider roles.
+
Using aria-valuetext
-
When the element's values are contained within a range but those values are not numeric (such as "small", "medium" and "large"), aria-valuetext is used to surface the text value to assistive technologies. Only use aria-valuetext when aria-valuenow does not have meaning for the user because using aria-valuetext will prevent assistive technologies from communicating aria-valuenow.
+
+
+ When the element's values are contained within a range but those values are not numeric (such as "small", "medium" and "large"),
+ aria-valuetext is used to surface the text value to assistive technologies.
+ Only use aria-valuetext when aria-valuenow does not have meaning for the user because using aria-valuetext will prevent assistive technologies from communicating aria-valuenow.
+
Range properties with sliders
-
aria-valuenow, aria-valuemin and aria-valuemax are all required attributes for the slider role. aria-valuetext can be used when appropriate. Detailed description of the slider role can be found in the slider design pattern and slider (multi-thumb) design pattern.
-
The following example is a temperature controller. aria-valuetext is not be used as the number value in aria-valuenow is meaningful to the user.
+
+ The aria-valuenow, aria-valuemin and aria-valuemax properties are all required for the slider role.
+ The aria-valuetext property can be used when appropriate.
+ Detailed description of the slider role can be found in the slider design pattern and slider (multi-thumb) design pattern.
+
+
+ The following example is a temperature controller.
+ aria-valuetext is not be used as the number value in aria-valuenow is meaningful to the user.
+
aria-valuenow, aria-valuemin and aria-valuemax are all required attributes for the spinbutton role. aria-valuetext can be used when appropriate.
-
This example sets the price of paperclips in cents.
+
+
+ The aria-valuenow, aria-valuemin and aria-valuemax properties are all required for the spinbutton role.
+ aria-valuetext can be used when appropriate.
+
+
+
+ This example sets the price of paperclips in cents.
+
aria-valuenow, aria-valuemin and aria-valuemax are not required attributes for the progressbar role, however, but the attributes might be necessary for communicating the state of a progress bar to assistive technologies.
-
This is an example of a progress bar represent by an SVG. The range properties are necessary to full explain the widget to assistive technologies.
+
+
+ The aria-valuenow, aria-valuemin and aria-valuemax properties are not required for the progressbar role, but the properties might be necessary for communicating the state of a progress bar to assistive technologies.
+
+
+
+ This is an example of a progress bar represent by an SVG.
+ The range properties are necessary to full explain the widget to assistive technologies.
+
To represent an indeterminate progress bar where the value range is unknown, omit the aria-valuemin, aria-valuemax, and aria-valuenow attributes.
+
+
+ To represent an indeterminate progress bar where the value range is unknown,
+ omit the aria-valuemin, aria-valuemax, and aria-valuenow attributes.
+
aria-valuenow, aria-valuemin and aria-valuemax are all required attributes for the scrollbar role. The value of aria-valuenow will generally be exposed as a percentage between aria-valuemin and aria-valuemax calculated by assistive technologies.
+
+
+ The aria-valuenow, aria-valuemin and aria-valuemax properties are all required for the scrollbar role.
+ The value of aria-valuenow will generally be exposed as a percentage between aria-valuemin and aria-valuemax calculated by assistive technologies.
+
If aria-valuemin and aria-valuemax are omitted, then the browser will use the default values of 0 and 100, respectively.
+
+
+ If aria-valuemin and aria-valuemax are omitted, then the browser will use the default values of 0 and 100, respectively.
+
From f28246bddfb1c8e26f8df61d0c4c2626cbdcdd26 Mon Sep 17 00:00:00 2001
From: Simon Pieters
Date: Tue, 3 Dec 2019 15:59:03 +0100
Subject: [PATCH 11/62] Fix a factual error about which properties are required
for spinbutton
---
aria-practices.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/aria-practices.html b/aria-practices.html
index ecad635fc5..511336b6fc 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6615,7 +6615,7 @@
Range properties with sliders
Range properties with spin buttons
- The aria-valuenow, aria-valuemin and aria-valuemax properties are all required for the spinbutton role.
+ The aria-valuenow, aria-valuemin and aria-valuemax properties are not required for the spinbutton role.
aria-valuetext can be used when appropriate.
- The aria-valuenow, aria-valuemin and aria-valuemax properties are all required for the slider role.
- The aria-valuetext property can be used when appropriate.
- Detailed description of the slider role can be found in the slider design pattern and slider (multi-thumb) design pattern.
-
-
- The following example is a temperature controller.
- aria-valuetext is not be used as the number value in aria-valuenow is meaningful to the user.
-
The following example is a fan control. The aria-valuenow value is "1", which is not meaningful to the user. The assistive technology will surface the value of aria-valuetext ("low") instead.
- The aria-valuenow, aria-valuemin and aria-valuemax properties are not required for the spinbutton role.
- aria-valuetext can be used when appropriate.
-
-
-
- This example sets the price of paperclips in cents.
-
<label>Price per paperclip: $<input type="number" min="0.01" value="0.5" max="2" step="0.01"></label>
-
Range properties with progress bars
@@ -6703,6 +6646,64 @@
Range properties with scrollbars
If aria-valuemin and aria-valuemax are omitted, then the browser will use the default values of 0 and 100, respectively.
+
+
+
Range properties with sliders
+
+ The aria-valuenow, aria-valuemin and aria-valuemax properties are all required for the slider role.
+ The aria-valuetext property can be used when appropriate.
+ Detailed description of the slider role can be found in the slider design pattern and slider (multi-thumb) design pattern.
+
+
+ The following example is a temperature controller.
+ aria-valuetext is not be used as the number value in aria-valuenow is meaningful to the user.
+
The following example is a fan control. The aria-valuenow value is "1", which is not meaningful to the user. The assistive technology will surface the value of aria-valuetext ("low") instead.
+ The aria-valuenow, aria-valuemin and aria-valuemax properties are not required for the spinbutton role.
+ aria-valuetext can be used when appropriate.
+
+
+
+ This example sets the price of paperclips in cents.
+
<label>Price per paperclip: $<input type="number" min="0.01" value="0.5" max="2" step="0.01"></label>
+
From de54321200c15e4b5cf7092ec7387a1212bbf158 Mon Sep 17 00:00:00 2001
From: Simon Pieters
Date: Wed, 4 Dec 2019 14:54:29 +0100
Subject: [PATCH 14/62] The only range without min/max is spinbutton
---
aria-practices.html | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/aria-practices.html b/aria-practices.html
index 56b0703252..e71504d8e8 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6496,7 +6496,8 @@
Using aria-valuemin and aria-valuemax
When the range is unknown, omit both aria-valuemin and aria-valuemax.
- An example of an indeterminate range element is an indeterminate progress bar, covered in the progressbar Role section below.
+ An example of an indeterminate range element is a spin button that doesn't have any minimum or maximum value.
+ See the the Range properties with spin buttons section below.
@@ -6689,6 +6690,14 @@
Range properties with spin buttons
This example sets the price of paperclips in cents.
+
- The slider example above can be made using the native HTML <input type="number"> element.
+ The spin button example above can be made using the native HTML <input type="number"> element.
<input type="number" min="0.01" value="0.5" max="2" aria-labelledby="paperclip-label">
From 171151ac1052f0c530133bc6bfa4a4b369ba005e Mon Sep 17 00:00:00 2001
From: Simon Pieters
Date: Wed, 4 Dec 2019 15:09:53 +0100
Subject: [PATCH 15/62] Add an example for aria-valuetext
---
aria-practices.html | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/aria-practices.html b/aria-practices.html
index e71504d8e8..aac962cc17 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6577,9 +6577,23 @@
Using aria-valuetext
When the element's values are contained within a range but those values are not numeric (such as "small", "medium" and "large"),
+ or they are numeric but there is more information than just the number,
aria-valuetext is used to surface the text value to assistive technologies.
Only use aria-valuetext when aria-valuenow does not have meaning for the user because using aria-valuetext will prevent assistive technologies from communicating aria-valuenow.
+
+
+
+ For example, for a battery indicator, it would be useful to know how many minutes are remaining, in addition to how many percent charge is remaining.
+
From 4dffa1938ee1185df1c131e81f92c0af0e839239 Mon Sep 17 00:00:00 2001
From: Simon Pieters
Date: Wed, 4 Dec 2019 15:23:00 +0100
Subject: [PATCH 16/62] Tweaks wording for undefined range; indeterminate
progress bars can still use min/max
---
aria-practices.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/aria-practices.html b/aria-practices.html
index aac962cc17..7cd2ec9d66 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6496,7 +6496,7 @@
Using aria-valuemin and aria-valuemax
When the range is unknown, omit both aria-valuemin and aria-valuemax.
- An example of an indeterminate range element is a spin button that doesn't have any minimum or maximum value.
+ An example of a range element with undefined range is a spin button that doesn't have any minimum or maximum value.
See the the Range properties with spin buttons section below.
@@ -6620,7 +6620,7 @@
Range properties with progress bars
To represent an indeterminate progress bar where the value range is unknown,
- omit the aria-valuemin, aria-valuemax, and aria-valuenow attributes.
+ omit the aria-valuenow attribute.
From 541b9d4514495335c76081bff09dc37c345e2e85 Mon Sep 17 00:00:00 2001
From: Matt King
Date: Mon, 9 Dec 2019 23:59:24 -0800
Subject: [PATCH 17/62] Editorial revisions to introduction
---
aria-practices.html | 35 +++++++++++++----------------------
1 file changed, 13 insertions(+), 22 deletions(-)
diff --git a/aria-practices.html b/aria-practices.html
index 7cd2ec9d66..c48065401c 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6426,14 +6426,15 @@
Indicating sort order with aria-sort
-
Communicating Value for Range Widgets
+
Communicating Value and Limits of Range Widgets
- A range widget is a widget that can have a value within a range of possible values.
+ ARIA includes five widget roles defined as ranges, which means they communicate a numeric value, typically within defined limits.
+ For example, a spin button for choosing a day within the month of January would allow integer values from 1 to 31.
- ARIA provides the following four properties for communicating on the attributes of a range widget:
+ ARIA provides the following four properties for communicating the attributes of a range widget:
@@ -6445,36 +6446,26 @@
Communicating Value for Range Widgets
-
aria-valuemin
-
Defines the minimum value in the range.
+
aria-valuemin
+
Defines the minimum value of the range.
-
aria-valuemax
-
Defines the maximum value in the range.
+
aria-valuemax
+
Defines the maximum value of the range.
-
aria-valuenow
-
Defines the value of the element. This value is a number between aria-valuemin and aria-valuemax (if they are present).
+
aria-valuenow
+
Defines the value of the element. This value is a number greater than or equal to aria-valuemin and less than or equal to aria-valuemax (if they are specified).
-
aria-valuetext
-
Defines a description of the value of the element.
+
aria-valuetext
+
When a numeric value is not sufficiently descriptive, this can be used to define a description of the value of the element.
- The range related properties are used to describe an element whose value can be one of a range of values to assistive technologies.
- These properties communicate the maximum and minimum values for the element and the element's current value.
-
-
-
- The range properties can also be used to describe an element whose value can be one of a list of non-numeric values.
- In this scenario, all possible text values of the element will be programmatically mapped to numbers within the numeric range by the author.
-
-
-
- These attributes are used with the following roles:
+ These properties are supported by the following roles:
From 1f02c30a9863294a0fbc7d9c0497c0f08cf1df14 Mon Sep 17 00:00:00 2001
From: Matt King
Date: Tue, 10 Dec 2019 00:10:09 -0800
Subject: [PATCH 18/62] Further editorial simplification of introduction
---
aria-practices.html | 29 ++++++++++-------------------
1 file changed, 10 insertions(+), 19 deletions(-)
diff --git a/aria-practices.html b/aria-practices.html
index c48065401c..0ce59cbb09 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6427,16 +6427,20 @@
Indicating sort order with aria-sort
Communicating Value and Limits of Range Widgets
-
- ARIA includes five widget roles defined as ranges, which means they communicate a numeric value, typically within defined limits.
- For example, a spin button for choosing a day within the month of January would allow integer values from 1 to 31.
+ ARIA defines the following widget roles as ranges, which means they communicate a numeric value, typically within defined limits.
-
+
+
meter
+
progressbar
+
scrollbar
+
separator (if the element is focusable)
+
slider
+
spinbutton
+
- ARIA provides the following four properties for communicating the attributes of a range widget:
+ This section describes considerations for using the following four properties that communicate characteristics of a range widget:
-
@@ -6464,19 +6468,6 @@
Communicating Value and Limits of Range Widgets
-
- These properties are supported by the following roles:
-
-
-
-
meter
-
progressbar
-
scrollbar
-
separator (if the element is focusable)
-
slider
-
spinbutton
-
-
Using aria-valuemin and aria-valuemax
From bfbfe3006dbab5e0c3c649e41ac140ce5016d44d Mon Sep 17 00:00:00 2001
From: Matt King
Date: Tue, 10 Dec 2019 08:18:15 -0800
Subject: [PATCH 19/62] Further editorial revision to intro
---
aria-practices.html | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/aria-practices.html b/aria-practices.html
index 0ce59cbb09..146fa0e07b 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6428,7 +6428,7 @@
Indicating sort order with aria-sort
Communicating Value and Limits of Range Widgets
- ARIA defines the following widget roles as ranges, which means they communicate a numeric value, typically within defined limits.
+ ARIA defines the following roles as range widgets, which means they communicate a value that is typically numeric and is constrained to defined limits.
meter
@@ -6438,6 +6438,11 @@
Communicating Value and Limits of Range Widgets
slider
spinbutton
+
+ For example, a spin button for choosing a day within the month of January would allow integer values that range from 1 to 31.
+ In some cases, the value is represented numericaly, but is not presented as a number to users.
+ For instance, a spin button for choosing a day of the week could support values from 1 to 7 but they could be presented to the user as day names, e.g., "Monday", "Tuesday", etc.
+
This section describes considerations for using the following four properties that communicate characteristics of a range widget:
From c0a18e944ae4511490824d22c3b3120638a1ab12 Mon Sep 17 00:00:00 2001
From: Matt King
Date: Tue, 10 Dec 2019 08:21:14 -0800
Subject: [PATCH 20/62] Refine definition table in intro
---
aria-practices.html | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/aria-practices.html b/aria-practices.html
index 146fa0e07b..f7d2f3efd0 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6456,19 +6456,19 @@
Communicating Value and Limits of Range Widgets
aria-valuemin
-
Defines the minimum value of the range.
+
Defines the minimum value allowed by a range widget.
aria-valuemax
-
Defines the maximum value of the range.
+
Defines the maximum value allowed by a range widget.
aria-valuenow
-
Defines the value of the element. This value is a number greater than or equal to aria-valuemin and less than or equal to aria-valuemax (if they are specified).
+
Defines the current value of a range widget. This value is a number greater than or equal to aria-valuemin and less than or equal to aria-valuemax (if they are specified).
aria-valuetext
-
When a numeric value is not sufficiently descriptive, this can be used to define a description of the value of the element.
+
When a numeric value is not sufficiently descriptive, this property can define a description of the current value of a range widget.
From f4c9cc1c1a84b4a3273c93b808c1b4e521344ff6 Mon Sep 17 00:00:00 2001
From: Matt King
Date: Tue, 10 Dec 2019 08:56:41 -0800
Subject: [PATCH 21/62] Delete unnecessary 'is'
---
aria-practices.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/aria-practices.html b/aria-practices.html
index f7d2f3efd0..e7424257c5 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6428,7 +6428,7 @@
Indicating sort order with aria-sort
Communicating Value and Limits of Range Widgets
- ARIA defines the following roles as range widgets, which means they communicate a value that is typically numeric and is constrained to defined limits.
+ ARIA defines the following roles as range widgets, which means they communicate a value that is typically numeric and constrained to defined limits.
meter
From 9d5b74484e72bc83ee6c02e0a6b2c467c5510341 Mon Sep 17 00:00:00 2001
From: Matt King
Date: Tue, 10 Dec 2019 09:32:46 -0800
Subject: [PATCH 22/62] Editorial revisions to min and max section
---
aria-practices.html | 29 +++++++++++------------------
1 file changed, 11 insertions(+), 18 deletions(-)
diff --git a/aria-practices.html b/aria-practices.html
index e7424257c5..265270c745 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6475,22 +6475,15 @@
Communicating Value and Limits of Range Widgets
Using aria-valuemin and aria-valuemax
-
-
- When an element's possible values are contained within a known range, the attributes aria-valuemin and aria-valuemax are used to inform assistive technologies of the minimum and maximum values of the range.
- When using these properties, set aria-valuemin to the lowest value of the range and aria-valuemax to the greatest value.
-
-
- When the range is unknown, omit both aria-valuemin and aria-valuemax.
- An example of a range element with undefined range is a spin button that doesn't have any minimum or maximum value.
- See the the Range properties with spin buttons section below.
+ When the value of a range widget is constrained to known limits, the aria-valuemin and aria-valuemax properties are used to inform assistive technologies of the minimum and maximum values of the range.
+ For some widgets, assistive technologies use this information to present the current value as a percentage.
+ When using these properties, set aria-valuemin to the lowest value allowed for the widget and aria-valuemax to the highest allowed value.
+ If a range widget represents a value that does not have known limits, omit both aria-valuemin and aria-valuemax.
-
- For the different roles where these properties are allowed, some properties are required, and some have default values, as shown in the following table:
+ The range widget roles have the following default values and requirements for aria-valuemin and aria-valuemax.
-
@@ -6502,37 +6495,37 @@
Using aria-valuemin and aria-valuemax
-
meter
+
meter
no default
no default
Yes
-
progressbar
+
progressbar
0
100
No
-
scrollbar
+
scrollbar
0
100
No
-
separator
+
separator
0
100
No
-
slider
+
slider
0
100
No
-
spinbutton
+
spinbutton
no default
no default
No
From 55b86f6925d5b62c992a727a09297afeb34708b2 Mon Sep 17 00:00:00 2001
From: Matt King
Date: Tue, 10 Dec 2019 09:46:20 -0800
Subject: [PATCH 23/62] Editorial revisions to valuenow section
---
aria-practices.html | 13 ++++---------
1 file changed, 4 insertions(+), 9 deletions(-)
diff --git a/aria-practices.html b/aria-practices.html
index 265270c745..17ba9089dd 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6536,17 +6536,12 @@
Using aria-valuemin and aria-valuemax
Using aria-valuenow
-
- The aria-valuenow property is used to inform assistive technologies of the current value of an element.
- When aria-valuemin and aria-valuemax are specified, and the value is known,
- set aria-valuenow to a numeric value that is within the range define by aria-valuemin and aria-valuemax.
+ The aria-valuenow property is used to inform assistive technologies of the current value of a range widget.
+ If a range widget has a known value, set aria-valuenow to that value.
+ Otherwise, omit the aria-valuenow property.
+ If aria-valuemin and aria-valuemax are specified, ensure the value of aria-valuenow falls within the defined range.
-
-
- When the value is unknown, omit the aria-valuenow property.
-
-
The aria-valuenow property is required for the scrollbar, separator (if the element is focusable), and slider roles.
From 788270986482efa05d30af25aa366406f545786e Mon Sep 17 00:00:00 2001
From: Matt King
Date: Tue, 10 Dec 2019 09:48:27 -0800
Subject: [PATCH 24/62] Section title: of -> for
---
aria-practices.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/aria-practices.html b/aria-practices.html
index 17ba9089dd..cab08ecf7f 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6426,7 +6426,7 @@
Indicating sort order with aria-sort
-
Communicating Value and Limits of Range Widgets
+
Communicating Value and Limits for Range Widgets
ARIA defines the following roles as range widgets, which means they communicate a value that is typically numeric and constrained to defined limits.
When a numeric value is not sufficiently descriptive, this property can define a description of the current value of a range widget.
+
If a numeric value is not sufficiently descriptive, this property can define a textual description of the current value of a range widget.
From f7631e9fafd405c09ec2464a069bac4377ddc16b Mon Sep 17 00:00:00 2001
From: JaEun Jemma Ku
Date: Fri, 21 Feb 2020 20:44:10 -0600
Subject: [PATCH 26/62] added meter example under range properties
---
aria-practices.html | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/aria-practices.html b/aria-practices.html
index 4a745c3142..e5465c5c22 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6571,7 +6571,27 @@
Using aria-valuetext
+
+
Range properties with meter
+
+ A meter is a graphical display of a numeric value within a defined range. Therefore, the aria-valuemin, aria-valuenow and aria-valuemax properties are required for the meter role although there are no default values for aria-valuemin and aria-valuemax.
+
+
+
This is an example of a meter, which shows the change of Central Processing Unit(CPU) usage.
+ The aria-valuetext property can be set to a string that makes the meter value understandable. For example, a CPU usage meter value might be conveyed as aria-valuetext="90% of CPU is being used".
+
+
+
Range properties with progress bars
From a97ebf3ed3b518bbf50a7c59b5bc2d9285a6fd85 Mon Sep 17 00:00:00 2001
From: Carolyn MacLeod
Date: Wed, 26 Feb 2020 09:23:29 -0500
Subject: [PATCH 27/62] Editorial: meter shows current (not changed) CPU usage
---
aria-practices.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/aria-practices.html b/aria-practices.html
index e5465c5c22..8b0225ed4e 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6578,7 +6578,7 @@
Range properties with meter
A meter is a graphical display of a numeric value within a defined range. Therefore, the aria-valuemin, aria-valuenow and aria-valuemax properties are required for the meter role although there are no default values for aria-valuemin and aria-valuemax.
-
This is an example of a meter, which shows the change of Central Processing Unit(CPU) usage.
+
This is an example of a meter, which shows the current Central Processing Unit (CPU) usage.
<div role="meter"
aria-valuenow="90"
From 889061220f497eaefd26f59ef4b95420fb6d9e2b Mon Sep 17 00:00:00 2001
From: Carolyn MacLeod
Date: Wed, 26 Feb 2020 09:25:13 -0500
Subject: [PATCH 28/62] Editorial: aria-valuenow is required, so no default
value
---
aria-practices.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/aria-practices.html b/aria-practices.html
index 8b0225ed4e..12f2661f5a 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6575,7 +6575,7 @@
Using aria-valuetext
Range properties with meter
- A meter is a graphical display of a numeric value within a defined range. Therefore, the aria-valuemin, aria-valuenow and aria-valuemax properties are required for the meter role although there are no default values for aria-valuemin and aria-valuemax.
+ A meter is a graphical display of a numeric value within a defined range. Therefore, the aria-valuemin, aria-valuenow and aria-valuemax properties are required for the meter role, and they do not have default values.
This is an example of a meter, which shows the current Central Processing Unit (CPU) usage.
For example, a spin button for choosing a day within the month of January would allow integer values that range from 1 to 31.
- In some cases, the value is represented numericaly, but is not presented as a number to users.
+ In some cases, the value is represented numerically, but is not presented as a number to users.
For instance, a spin button for choosing a day of the week could support values from 1 to 7 but they could be presented to the user as day names, e.g., "Monday", "Tuesday", etc.
@@ -6473,8 +6473,8 @@
Communicating Value and Limits for Range Widgets
-
-
Using aria-valuemin and aria-valuemax
+
+
Using aria-valuemin, aria-valuemax and aria-valuenow
When the value of a range widget is constrained to known limits, the aria-valuemin and aria-valuemax properties are used to inform assistive technologies of the minimum and maximum values of the range.
For some widgets, assistive technologies use this information to present the current value as a percentage.
@@ -6482,71 +6482,93 @@
Using aria-valuemin and aria-valuemax
If a range widget represents a value that does not have known limits, omit both aria-valuemin and aria-valuemax.
- The range widget roles have the following default values and requirements for aria-valuemin and aria-valuemax.
+ The aria-valuenow property is used to inform assistive technologies of the current value of a range widget.
+ If a range widget has a known value, set aria-valuenow to that value.
+ Otherwise, omit the aria-valuenow property.
+ If aria-valuemin and aria-valuemax are specified, ensure the value of aria-valuenow falls within the defined range.
+ The aria-valuenow property is required for the meter, scrollbar, separator (if the element is focusable), and slider roles.
+
+
+ The range widget roles have the following default values and requirements for aria-valuemin, aria-valuemax and aria-valuenow.
+
+
+
+
+
Role
+
Default Values
+
Required
+
-
Role
-
Default aria-valuemin
-
Default aria-valuemax
-
Are aria-valuemin and aria-valuemax required?
+
aria-valuemin
+
aria-valuemax
+
aria-valuenow
+
aria-valuemin
+
aria-valuemax
+
aria-valuenow
-
meter
-
no default
-
no default
+
meter
+
0
+
100
+
None
+
No
+
No
Yes
-
progressbar
+
progressbar
0
100
+
None
+
No
+
No
No
-
scrollbar
+
scrollbar
0
100
+
None
No
+
No
+
Yes
-
separator
+
separator (if focusable)
0
100
+
None
No
+
No
+
Yes
-
slider
+
slider
0
100
+
None
No
+
No
+
Yes
-
spinbutton
-
no default
-
no default
+
spinbutton
+
None
+
None
+
None
+
No
+
No
No
-
-
Using aria-valuenow
-
- The aria-valuenow property is used to inform assistive technologies of the current value of a range widget.
- If a range widget has a known value, set aria-valuenow to that value.
- Otherwise, omit the aria-valuenow property.
- If aria-valuemin and aria-valuemax are specified, ensure the value of aria-valuenow falls within the defined range.
-
-
- The aria-valuenow property is required for the scrollbar, separator (if the element is focusable), and slider roles.
-
-
-
Using aria-valuetext
From ad2e51270260842d5f1d5caa9ac5da2934b9c2a7 Mon Sep 17 00:00:00 2001
From: JaEun Jemma Ku
Date: Sun, 5 Apr 2020 12:03:35 -0500
Subject: [PATCH 31/62] update range aria value properties in summary table and
each role accordingly. Also add design pattern links to spin button and
meter
---
aria-practices.html | 93 ++++++++++++++++++++++-----------------------
1 file changed, 45 insertions(+), 48 deletions(-)
diff --git a/aria-practices.html b/aria-practices.html
index deddc67631..f05703fd37 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6493,21 +6493,14 @@
Using aria-valuemin, aria-valuemax and aria-
-
-
-
-
-
Role
-
Default Values
-
Required
-
+
-
aria-valuemin
-
aria-valuemax
-
aria-valuenow
-
aria-valuemin
-
aria-valuemax
-
aria-valuenow
+
Role
+
aria-valuemin (default)
+
aria-valuemax (default)
+
aria-valuemin (required)
+
aria-valuemax (required)
+
aria-valuenow (required)
@@ -6515,55 +6508,49 @@
Using aria-valuemin, aria-valuemax and aria-
meter
0
100
-
None
-
No
-
No
-
Yes
+
When minimum value is not 0
+
When minimum value is not 100
+
yes
progressbar
0
100
-
None
-
No
-
No
-
No
+
When minimum value is not 0
+
When minimum value is not 100
+
Yes, unless inderterminate
scrollbar
0
100
-
None
-
No
-
No
+
When minimum value is not 0
+
When minimum value is not 100
Yes
separator (if focusable)
0
100
-
None
-
No
-
No
+
When minimum value is not 0
+
When minimum value is not 100
Yes
slider
0
100
-
None
-
No
-
No
+
When minimum value is not 0
+
When minimum value is not 100
Yes
spinbutton
None
None
-
None
-
No
-
No
-
No
+
minimum value if known
+
maximum value if known
+
Yes, if known
@@ -6597,16 +6584,21 @@
Using aria-valuetext
Range properties with meter
- A meter is a graphical display of a numeric value within a defined range. Therefore, the aria-valuemin, aria-valuenow and aria-valuemax properties are required for the meter role, and they do not have default values.
+ A meter is a graphical display of a numeric value within a defined range.
+
+
The meter role has the default value 0 for aria-valuemin, 100 for aria-valuemax.
+ When the meter role does not provide default range values from 0 to 100, aria-valuemin and aria-valuemax property values are required.
+ Also aria-valuenow range property is required for meter.
+ Detailed description of the meter role can be found in the meter design pattern.
-
+
This is an example of a meter, which shows the current Central Processing Unit (CPU) usage.
- The aria-valuenow, aria-valuemin and aria-valuemax properties are not required for the progressbar role, but the properties might be necessary for communicating the state of a progress bar to assistive technologies.
+ The aria-valuemin and aria-valuemax properties are required for progressbar role when default values are different from aria-valuemin, 0 and aria-valuemax, 100.
+ The aria-valuenow is also required unless the current value is indeterminate.
+
+
The Range properties are necessary for communicating the state of a progress bar to assistive technologies.
-
This is an example of a progress bar represent by an SVG.
The range properties are necessary to full explain the widget to assistive technologies.
@@ -6657,7 +6651,11 @@
Range properties with scrollbars
The aria-valuenow, aria-valuemin and aria-valuemax properties are all required for the scrollbar role.
- The value of aria-valuenow will generally be exposed as a percentage between aria-valuemin and aria-valuemax calculated by assistive technologies.
+ If aria-valuemin and aria-valuemax are omitted, then the browser will use the default values of 0 and 100, respectively.
+
+
+
+ aria-valuenow will generally be exposed as a percentage between aria-valuemin and aria-valuemax calculated by assistive technologies.
<div id="pi">
@@ -6675,9 +6673,7 @@
Range properties with scrollbars
</div>
</div>
-
- If aria-valuemin and aria-valuemax are omitted, then the browser will use the default values of 0 and 100, respectively.
-
+
@@ -6715,7 +6711,8 @@
Range properties with spin buttons
The aria-valuenow, aria-valuemin and aria-valuemax properties are not required for the spinbutton role.
- aria-valuetext can be used when appropriate.
+ aria-valuetext can be used when appropriate. However, aria-valuenow, aria-valuemin and aria-valuemax are required if those values are known.
+ Detailed description of the spin buttons role can be found in the spinbutton design pattern.
From af32cfcccc0a24551f6f5b735c0afebcb4298661 Mon Sep 17 00:00:00 2001
From: JaEun Jemma Ku
Date: Mon, 6 Apr 2020 13:05:33 -0500
Subject: [PATCH 32/62] update meter ranage and add and modify suggested ph
exmaple
---
aria-practices.html | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/aria-practices.html b/aria-practices.html
index f05703fd37..e1202df326 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6586,9 +6586,9 @@
Range properties with meter
A meter is a graphical display of a numeric value within a defined range.
-
The meter role has the default value 0 for aria-valuemin, 100 for aria-valuemax.
- When the meter role does not provide default range values from 0 to 100, aria-valuemin and aria-valuemax property values are required.
- Also aria-valuenow range property is required for meter.
+
+ The meter role has the default value 0 for aria-valuemin, 100 for aria-valuemax and only need to be set when the actual minimum and maximum values are different.
+ The aria-valuenow property is required for meter and the author needs to make sure aria-valuenow is within the minimum and maximum values.
Detailed description of the meter role can be found in the meter design pattern.
@@ -6596,6 +6596,7 @@
Range properties with meter
<span id="cpu_usage_label">CPU usage</span>
<div role="meter"
+ //The CPU usage uses the default values of 0 and 100 for aria-valuemin and aria-valumax
aria-valuenow="90"
aria-valuemin="0"
aria-valuemax="100"
@@ -6605,7 +6606,15 @@
Range properties with meter
The aria-valuetext property can be set to a string that makes the meter value understandable. For example, a CPU usage meter value might be conveyed as aria-valuetext="90% of CPU is being used".
+
Here is another meter example using a different range, not default values of 0 and 100 for aria-valuemin and aria-valuemax.
From ae55151501b0baf29756e6f71952d70263c3e232 Mon Sep 17 00:00:00 2001
From: JaEun Jemma Ku
Date: Mon, 11 May 2020 01:03:38 -0500
Subject: [PATCH 33/62] editorial and exmaple code change with comments
---
aria-practices.html | 56 ++++++++++++++++++++-------------------------
1 file changed, 25 insertions(+), 31 deletions(-)
diff --git a/aria-practices.html b/aria-practices.html
index e1202df326..3c2fa6af66 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6508,48 +6508,48 @@
Using aria-valuemin, aria-valuemax and aria-
meter
0
100
-
When minimum value is not 0
-
When minimum value is not 100
-
yes
+
No
+
No
+
Yes
progressbar
0
100
-
When minimum value is not 0
-
When minimum value is not 100
+
No
+
No
Yes, unless inderterminate
scrollbar
0
100
-
When minimum value is not 0
-
When minimum value is not 100
+
No
+
No
Yes
separator (if focusable)
0
100
-
When minimum value is not 0
-
When minimum value is not 100
+
No
+
No
Yes
slider
0
100
-
When minimum value is not 0
-
When minimum value is not 100
+
No
+
No
Yes
spinbutton
None
None
-
minimum value if known
-
maximum value if known
+
Yes, if known
+
Yes, if known
Yes, if known
@@ -6586,20 +6586,15 @@
Range properties with meter
A meter is a graphical display of a numeric value within a defined range.
-
- The meter role has the default value 0 for aria-valuemin, 100 for aria-valuemax and only need to be set when the actual minimum and maximum values are different.
- The aria-valuenow property is required for meter and the author needs to make sure aria-valuenow is within the minimum and maximum values.
- Detailed description of the meter role can be found in the meter design pattern.
-
+
The aria-valuemin and aria-valuemax properties only need to be set for the meter role when the meter's minimum is not 0 or the maximum value is not 100. The aria-valuenow property is required for meter role and the author needs to make sure aria-valuenow is within the minimum and maximum values.
+ Detailed description of the meter role can be found in the meter design pattern.
This is an example of a meter, which shows the current Central Processing Unit (CPU) usage.
<span id="cpu_usage_label">CPU usage</span>
<div role="meter"
- //The CPU usage uses the default values of 0 and 100 for aria-valuemin and aria-valumax
+//The CPU usage uses the default values of 0 and 100 for aria-valuemin and aria-valuemax
aria-valuenow="90"
- aria-valuemin="0"
- aria-valuemax="100"
aria-labelledby="cpu_usage_label">
</div>
@@ -6620,8 +6615,8 @@
Range properties with meter
Range properties with progress bars
- The aria-valuemin and aria-valuemax properties are required for progressbar role when default values are different from aria-valuemin, 0 and aria-valuemax, 100.
- The aria-valuenow is also required unless the current value is indeterminate.
+ The aria-valuemin and aria-valuemax properties only need to be set for the progressbar role when the progress bar's minimum is not 0 or the maximum value is not 100.
+ The aria-valuenow property is required for progressbar if the value is known (e.g. not indeterminate). If aria-valuenow property is set, the author needs to make sure it is within the minimum and maximum values.
The Range properties are necessary for communicating the state of a progress bar to assistive technologies.
@@ -6631,7 +6626,9 @@
Range properties with progress bars
<div>Loading:
- <span role="progressbar" aria-valuemin="0" aria-valuenow="33" aria-valuemax="100" >
+ <span role="progressbar"
+ //The progress bar uses the default values of 0 and 100 for aria-valuemin and aria-valuemax
+ aria-valuenow="33" >
<svg width="100" height="10">
<rect x="0" y="0" height="10" width="100" stroke="black" fill="none"/>
<rect x="0" y="0" height="10" width="33" fill="green" />
@@ -6659,9 +6656,7 @@
Range properties with progress bars
Range properties with scrollbars
- The aria-valuenow, aria-valuemin and aria-valuemax properties are all required for the scrollbar role.
- If aria-valuemin and aria-valuemax are omitted, then the browser will use the default values of 0 and 100, respectively.
-
+ The aria-valuemin and aria-valuemax properties only need to be set for the scrollbar role when the scrollbar's minimum is not 0 or the maximum value is not 100. The aria-valuenow property is required for scrollbar and the author needs to make sure it is within the minimum and maximum values.
aria-valuenow will generally be exposed as a percentage between aria-valuemin and aria-valuemax calculated by assistive technologies.
@@ -6674,10 +6669,9 @@
Range properties with scrollbars
<div
class="thumb"
role="scrollbar"
+ //The scrollbar uses the default values of 0 and 100 for aria-valuemin and aria-valuemax
aria-controls="pi"
aria-orientation="horizontal"
- aria-valuemin="0"
- aria-valuemax="100"
aria-valuenow="25">
</div>
</div>
@@ -6688,8 +6682,8 @@
Range properties with scrollbars
Range properties with sliders
- The aria-valuenow, aria-valuemin and aria-valuemax properties are all required for the slider role.
- The aria-valuetext property can be used when appropriate.
+ The aria-valuemin and aria-valuemax properties only need to be set for the slider role when the slider's minimum is not 0 or the maximum value is not 100.
+ The aria-valuenow property is required for slider role and the author needs to make sure it is within the minimum and maximum values.
Detailed description of the slider role can be found in the slider design pattern and slider (multi-thumb) design pattern.
From 2ed177f5deb4cec2df457c028041aa2d8a57cade Mon Sep 17 00:00:00 2001
From: JaEun Jemma Ku
Date: Mon, 11 May 2020 01:32:48 -0500
Subject: [PATCH 34/62] fixed some of testing failure
---
aria-practices.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/aria-practices.html b/aria-practices.html
index 3c2fa6af66..e840331f52 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6518,7 +6518,7 @@
Using aria-valuemin, aria-valuemax and aria-
100
No
No
-
Yes, unless inderterminate
+
Yes, if it is not exactly known.
scrollbar
@@ -6656,7 +6656,7 @@
Range properties with progress bars
Range properties with scrollbars
- The aria-valuemin and aria-valuemax properties only need to be set for the scrollbar role when the scrollbar's minimum is not 0 or the maximum value is not 100. The aria-valuenow property is required for scrollbar and the author needs to make sure it is within the minimum and maximum values.
+ The aria-valuemin and aria-valuemax properties only need to be set for the scrollbar role when it's minimum value is not 0 or the maximum value is not 100. The aria-valuenow property is required for scrollbar and the author needs to make sure it is within the minimum and maximum values.
aria-valuenow will generally be exposed as a percentage between aria-valuemin and aria-valuemax calculated by assistive technologies.
From d26175b26f0f09f9f1e2688c5033414d3756aa0e Mon Sep 17 00:00:00 2001
From: Matt King
Date: Tue, 12 May 2020 08:24:24 -0700
Subject: [PATCH 35/62] Change H2 to H3 for subsections that had wrong heading
level
---
aria-practices.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/aria-practices.html b/aria-practices.html
index e840331f52..7091cf83ce 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6474,7 +6474,7 @@
Communicating Value and Limits for Range Widgets
-
Using aria-valuemin, aria-valuemax and aria-valuenow
+
Using aria-valuemin, aria-valuemax and aria-valuenow
When the value of a range widget is constrained to known limits, the aria-valuemin and aria-valuemax properties are used to inform assistive technologies of the minimum and maximum values of the range.
For some widgets, assistive technologies use this information to present the current value as a percentage.
@@ -6557,7 +6557,7 @@
Using aria-valuemin, aria-valuemax and aria-
-
Using aria-valuetext
+
Using aria-valuetext
When the element's values are contained within a range but those values are not numeric (such as "small", "medium" and "large"),
From f617409251e3c191fefb1cf605ef7fbd02fafad9 Mon Sep 17 00:00:00 2001
From: Matt King
Date: Tue, 12 May 2020 08:28:30 -0700
Subject: [PATCH 36/62] valuetext: minor editorial revisions for style
---
aria-practices.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/aria-practices.html b/aria-practices.html
index 7091cf83ce..dac30b0a86 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6561,9 +6561,9 @@
Using aria-valuetext
When the element's values are contained within a range but those values are not numeric (such as "small", "medium" and "large"),
- or they are numeric but there is more information than just the number,
+ or they are numeric but there is value in communicating more information than just a number,
aria-valuetext is used to surface the text value to assistive technologies.
- Only use aria-valuetext when aria-valuenow does not have meaning for the user because using aria-valuetext will prevent assistive technologies from communicating aria-valuenow.
+ Only use aria-valuetext when aria-valuenow is not sufficiently meaningful for users because using aria-valuetext will prevent assistive technologies from communicating aria-valuenow.
From a5551cbf72d015debb9f7aeb2d8cfc5a2afd6017 Mon Sep 17 00:00:00 2001
From: Matt King
Date: Tue, 12 May 2020 08:34:43 -0700
Subject: [PATCH 37/62] valuetext subsection: Remove value min and max from
meter example
---
aria-practices.html | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/aria-practices.html b/aria-practices.html
index dac30b0a86..3580c51261 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6571,12 +6571,13 @@
Using aria-valuetext
For example, for a battery indicator, it would be useful to know how many minutes are remaining, in addition to how many percent charge is remaining.
-
From 03fc0897ba6352224efc8294a32006d6bdc9c990 Mon Sep 17 00:00:00 2001
From: Matt King
Date: Tue, 12 May 2020 08:52:26 -0700
Subject: [PATCH 38/62] meter role: editorial revisions for style
---
aria-practices.html | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/aria-practices.html b/aria-practices.html
index 3580c51261..e6d17cb128 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6583,11 +6583,9 @@
Using aria-valuetext
Range properties with meter
-
- A meter is a graphical display of a numeric value within a defined range.
-
-
The aria-valuemin and aria-valuemax properties only need to be set for the meter role when the meter's minimum is not 0 or the maximum value is not 100. The aria-valuenow property is required for meter role and the author needs to make sure aria-valuenow is within the minimum and maximum values.
+ The aria-valuemin and aria-valuemax properties only need to be set for elements with role meter if the meter's minimum value is not 0 or its maximum value is not 100.
+ It is necessary, however, to always specify a value for aria-valuenow and to ensure the value is greater than or equal to the minimum allowed value and less than or equal to the maximum allowed value.
Detailed description of the meter role can be found in the meter design pattern.
This is an example of a meter, which shows the current Central Processing Unit (CPU) usage.
From 8de7bc15d899a645065d5c90379b478f1270053e Mon Sep 17 00:00:00 2001
From: Matt King
Date: Tue, 12 May 2020 08:56:04 -0700
Subject: [PATCH 39/62] Add link to meter design pattern
---
aria-practices.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/aria-practices.html b/aria-practices.html
index e6d17cb128..42e8d73c03 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6586,7 +6586,7 @@
Range properties with meter
The aria-valuemin and aria-valuemax properties only need to be set for elements with role meter if the meter's minimum value is not 0 or its maximum value is not 100.
It is necessary, however, to always specify a value for aria-valuenow and to ensure the value is greater than or equal to the minimum allowed value and less than or equal to the maximum allowed value.
- Detailed description of the meter role can be found in the meter design pattern.
This is an example of a meter, which shows the current Central Processing Unit (CPU) usage.
From 454c86c6a299ae1eb9f6f442b53dbe21ee8dace0 Mon Sep 17 00:00:00 2001
From: Carolyn MacLeod
Date: Tue, 26 May 2020 12:00:17 -0400
Subject: [PATCH 40/62] add missing end tag for code
---
aria-practices.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/aria-practices.html b/aria-practices.html
index 42e8d73c03..a01d17bd26 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6682,7 +6682,7 @@
Range properties with scrollbars
Range properties with sliders
The aria-valuemin and aria-valuemax properties only need to be set for the slider role when the slider's minimum is not 0 or the maximum value is not 100.
- The aria-valuenow property is required for slider role and the author needs to make sure it is within the minimum and maximum values.
+ The aria-valuenow property is required for slider role and the author needs to make sure it is within the minimum and maximum values.
Detailed description of the slider role can be found in the slider design pattern and slider (multi-thumb) design pattern.
From 60b1dc35d7eedbd1244fd925de01ef1841df8a4e Mon Sep 17 00:00:00 2001
From: Carolyn MacLeod
Date: Tue, 26 May 2020 13:13:24 -0400
Subject: [PATCH 41/62] remove "not exactly" so that progressbar aria-valuenow
is required if known
---
aria-practices.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/aria-practices.html b/aria-practices.html
index a01d17bd26..38980477e6 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6518,7 +6518,7 @@
Using aria-valuemin, aria-valuemax and aria-
100
No
No
-
Yes, if it is not exactly known.
+
Yes, if known
scrollbar
From 8c39d7f4bba57b3526dd267719961d29479e6f27 Mon Sep 17 00:00:00 2001
From: Carolyn MacLeod
Date: Wed, 27 May 2020 09:31:48 -0400
Subject: [PATCH 42/62] use more common language
---
aria-practices.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/aria-practices.html b/aria-practices.html
index 38980477e6..fd4f7cc4ec 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6568,7 +6568,7 @@
Using aria-valuetext
- For example, for a battery indicator, it would be useful to know how many minutes are remaining, in addition to how many percent charge is remaining.
+ For example, for a battery indicator, it would be useful to know how many minutes are remaining, in addition to the percentage of charge remaining.
The aria-valuemin and aria-valuemax properties only need to be set for elements with role meter if the meter's minimum value is not 0 or its maximum value is not 100.
It is necessary, however, to always specify a value for aria-valuenow and to ensure the value is greater than or equal to the minimum allowed value and less than or equal to the maximum allowed value.
- Detailed description of the meter role is in the meter design pattern.
It is necessary, however, to always specify a value for aria-valuenow and to ensure the value is greater than or equal to the minimum allowed value and less than or equal to the maximum allowed value.
A detailed description of the meter role is in the meter design pattern.
-
This is an example of a meter, which shows the current Central Processing Unit (CPU) usage.
+
This example of a meter shows the current Central Processing Unit (CPU) usage.
The aria-valuemin and aria-valuemax properties only need to be set for the progressbar role when the progress bar's minimum is not 0 or the maximum value is not 100.
- The aria-valuenow property is required for progressbar if the value is known (e.g. not indeterminate). If aria-valuenow property is set, the author needs to make sure it is within the minimum and maximum values.
+ The aria-valuenow property is required for progressbar if the value is known (e.g. not indeterminate). If the aria-valuenow property is set, the author needs to make sure it is within the minimum and maximum values.
The Range properties are necessary for communicating the state of a progress bar to assistive technologies.
The Range properties are necessary for communicating the state of a progress bar to assistive technologies.
- This is an example of a progress bar represent by an SVG.
+ This is an example of a progress bar represented by an SVG.
The range properties are necessary to full explain the widget to assistive technologies.
This is an example of a progress bar represented by an SVG.
- The range properties are necessary to full explain the widget to assistive technologies.
+ The range properties are necessary to fully explain the widget to assistive technologies.
<div>Loading:
From 82ff06ea4a30a9268aa31c34c92f8e727a5520e2 Mon Sep 17 00:00:00 2001
From: Carolyn MacLeod
Date: Wed, 27 May 2020 09:39:31 -0400
Subject: [PATCH 48/62] reword so that using aria-valuetext is sentence
subject, not AT
---
aria-practices.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/aria-practices.html b/aria-practices.html
index b09602192f..0b10d6ed70 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6696,7 +6696,7 @@
Range properties with sliders
</div>
The slider example above can be made using the HTML <input type="range"> element.
The following example is a fan control. The aria-valuenow value is "1", which is not meaningful to the user. The assistive technology will surface the value of aria-valuetext ("low") instead.
+
The following example is a fan control. The aria-valuenow value is "1", which is not meaningful to the user. The aria-valuetext property is used so that assistive technology will surface its value ("low") instead.
<div class="rail">
<div id="thumb" role="slider" aria-valuemin="0" aria-valuenow="1" aria-valuemax="3"
aria-valuetext="low" aria-label="Fan speed" tabindex="0" >
From 785758606f61c171e7febef255bd3404b6c9e7e6 Mon Sep 17 00:00:00 2001
From: Carolyn MacLeod
Date: Wed, 27 May 2020 09:40:50 -0400
Subject: [PATCH 49/62] fix plural/singular in sentence and role name
---
aria-practices.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/aria-practices.html b/aria-practices.html
index 0b10d6ed70..8cd33b851a 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6714,7 +6714,7 @@
Range properties with spin buttons
The aria-valuenow, aria-valuemin and aria-valuemax properties are not required for the spinbutton role.
aria-valuetext can be used when appropriate. However, aria-valuenow, aria-valuemin and aria-valuemax are required if those values are known.
- Detailed description of the spin buttons role can be found in the spinbutton design pattern.
+ A detailed description of the spinbutton role can be found in the spinbutton design pattern.
- The aria-valuemin and aria-valuemax properties only need to be set for the scrollbar role when it's minimum value is not 0 or the maximum value is not 100. The aria-valuenow property is required for scrollbar and the author needs to make sure it is within the minimum and maximum values.
+ The aria-valuemin and aria-valuemax properties only need to be set for the scrollbar role when it's minimum value is not 0 or the maximum value is not 100. The aria-valuenow property is required for scrollbar and the author needs to make sure it is within the minimum and maximum values.
aria-valuenow will generally be exposed as a percentage between aria-valuemin and aria-valuemax calculated by assistive technologies.
From f94fa266e1b218e791665e6b841fff7559adc511 Mon Sep 17 00:00:00 2001
From: Carolyn MacLeod
Date: Wed, 27 May 2020 09:43:12 -0400
Subject: [PATCH 51/62] reorder sentence for clarity
---
aria-practices.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/aria-practices.html b/aria-practices.html
index e61f4d7880..dee25b2f7d 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6687,7 +6687,7 @@
Range properties with sliders
The following example is a temperature controller.
- aria-valuetext is not be used as the number value in aria-valuenow is meaningful to the user.
+ In this example, aria-valuenow is meaningful to the user, and so aria-valuetext is not used.
<div class="rail">
<div id="thumb" role="slider" aria-valuemin="50" aria-valuenow="68" aria-valuemax="100"
From 2b9cdf468fdac8668ee69d266673573d51db5d20 Mon Sep 17 00:00:00 2001
From: Carolyn MacLeod
Date: Wed, 27 May 2020 09:44:11 -0400
Subject: [PATCH 52/62] use slightly more interesting word
---
aria-practices.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/aria-practices.html b/aria-practices.html
index dee25b2f7d..325bb90173 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6686,7 +6686,7 @@
- The following example is a temperature controller.
+ The following example shows a temperature controller.
In this example, aria-valuenow is meaningful to the user, and so aria-valuetext is not used.
The aria-valuemin and aria-valuemax properties only need to be set for the slider role when the slider's minimum is not 0 or the maximum value is not 100.
The aria-valuenow property is required for slider role and the author needs to make sure it is within the minimum and maximum values.
- Detailed description of the slider role can be found in the slider design pattern and slider (multi-thumb) design pattern.
+ A detailed description of the slider role can be found in the slider design pattern and slider (multi-thumb) design pattern.
The following example shows a temperature controller.
From 045f5970794f1287b11792abaebde9080db50b01 Mon Sep 17 00:00:00 2001
From: JaEun Jemma Ku
Date: Tue, 2 Jun 2020 11:23:37 -0500
Subject: [PATCH 54/62] change range property table and code comment type
---
aria-practices.html | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/aria-practices.html b/aria-practices.html
index bfd1804c19..0f9165b336 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6518,7 +6518,7 @@
Using aria-valuemin, aria-valuemax and aria-
100
No
No
-
Yes, if known
+
No
scrollbar
@@ -6548,9 +6548,9 @@
Using aria-valuemin, aria-valuemax and aria-
spinbutton
None
None
-
Yes, if known
-
Yes, if known
-
Yes, if known
+
No
+
No
+
No
@@ -6591,8 +6591,8 @@
Range properties with meter
This example of a meter shows the current Central Processing Unit (CPU) usage.
<span id="cpu_usage_label">CPU usage</span>
+<!-- The CPU usage uses the default values of 0 and 100 for aria-valuemin and aria-valuemax -->
<div role="meter"
-//The CPU usage uses the default values of 0 and 100 for aria-valuemin and aria-valuemax
aria-valuenow="90"
aria-labelledby="cpu_usage_label">
</div>
@@ -6625,8 +6625,8 @@
Range properties with progress bars
<div>Loading:
+ <!-- The progress bar uses the default values of 0 and 100 for aria-valuemin and aria-valuemax -->
<span role="progressbar"
- //The progress bar uses the default values of 0 and 100 for aria-valuemin and aria-valuemax
aria-valuenow="33" >
<svg width="100" height="10">
<rect x="0" y="0" height="10" width="100" stroke="black" fill="none"/>
@@ -6665,10 +6665,10 @@
Range properties with scrollbars
3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679
</div>
<div class="rail">
+<!-- The scrollbar uses the default values of 0 and 100 for aria-valuemin and aria-valuemax -->
<div
class="thumb"
role="scrollbar"
- //The scrollbar uses the default values of 0 and 100 for aria-valuemin and aria-valuemax
aria-controls="pi"
aria-orientation="horizontal"
aria-valuenow="25">
From 864db2b510da7073aa62c0c4fb8ff734e9f14640 Mon Sep 17 00:00:00 2001
From: JaEun Jemma Ku
Date: Tue, 2 Jun 2020 12:00:17 -0500
Subject: [PATCH 55/62] remove duplicate html spin button example and switch
the order of indeterminate progress bar example to the end
---
aria-practices.html | 18 ++++++------------
1 file changed, 6 insertions(+), 12 deletions(-)
diff --git a/aria-practices.html b/aria-practices.html
index 0f9165b336..d86bd60a81 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6634,14 +6634,6 @@
Range properties with progress bars
</svg>
</span>
</div>
-
-
- To represent an indeterminate progress bar where the value range is unknown,
- omit the aria-valuenow attribute.
-
<label>Price per paperclip: $<input type="number" min="0.01" value="0.5" max="2" step="0.01"></label>
From 75daeb239b9692712ad185f5f998e10abcd36faf Mon Sep 17 00:00:00 2001
From: Matt King
Date: Wed, 1 Jul 2020 15:38:46 -0700
Subject: [PATCH 56/62] textual > text
---
aria-practices.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/aria-practices.html b/aria-practices.html
index d86bd60a81..9983ec1dbd 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6468,7 +6468,7 @@
Communicating Value and Limits for Range Widgets
aria-valuetext
-
If a numeric value is not sufficiently descriptive, this property can define a textual description of the current value of a range widget.
+
If a numeric value is not sufficiently descriptive, this property can define a text description of the current value of a range widget.
From 6253cd7aea3b51b16fd0d6cfe0e015897fd64a0e Mon Sep 17 00:00:00 2001
From: Matt King
Date: Wed, 1 Jul 2020 15:49:11 -0700
Subject: [PATCH 57/62] Revise intro to second meter example for ease of
understanding
---
aria-practices.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/aria-practices.html b/aria-practices.html
index 9983ec1dbd..a625ba3c45 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6600,7 +6600,7 @@
Range properties with meter
The aria-valuetext property can be set to a string that makes the meter value understandable. For example, a CPU usage meter value might be conveyed as aria-valuetext="90% of CPU is being used".
-
Here is another meter example using a different range, not default values of 0 and 100 for aria-valuemin and aria-valuemax.
+
Here is another example of meter that has a range different from the default of 0 for aria-valuemin and 100 for aria-valuemax.
<span id="ph_alkaline_meter_label">Alkaline pH(Power of Hydrogen) Level</span>
<div role="meter"
From fe3a311971d810e9609bfcbbbb92e5e6174c82c4 Mon Sep 17 00:00:00 2001
From: Matt King
Date: Wed, 1 Jul 2020 15:59:00 -0700
Subject: [PATCH 58/62] Editorial simplification of progress bar
---
aria-practices.html | 20 ++++++--------------
1 file changed, 6 insertions(+), 14 deletions(-)
diff --git a/aria-practices.html b/aria-practices.html
index a625ba3c45..23f402a821 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6615,14 +6615,10 @@
Range properties with progress bars
The aria-valuemin and aria-valuemax properties only need to be set for the progressbar role when the progress bar's minimum is not 0 or the maximum value is not 100.
- The aria-valuenow property is required for progressbar if the value is known (e.g. not indeterminate). If the aria-valuenow property is set, the author needs to make sure it is within the minimum and maximum values.
-
-
The Range properties are necessary for communicating the state of a progress bar to assistive technologies.
-
-
- This is an example of a progress bar represented by an SVG.
- The range properties are necessary to fully explain the widget to assistive technologies.
+ The aria-valuenow property needs to be set for a progressbar if its value is known (e.g. not indeterminate).
+ If the aria-valuenow property is set, the author needs to make sure it is within the minimum and maximum values.
+
Following is an example of a progress bar represented by an SVG.
<div>Loading:
<!-- The progress bar uses the default values of 0 and 100 for aria-valuemin and aria-valuemax -->
@@ -6634,17 +6630,13 @@
Range properties with progress bars
</svg>
</span>
</div>
-
- The progress bar example can also be made using the native HTML progress element.
-
+
This progress bar can also be made using the native HTML progress element.
From 6c9081ce3720b4ed9962c95a811102d4e0323512 Mon Sep 17 00:00:00 2001
From: Matt King
Date: Wed, 1 Jul 2020 16:29:51 -0700
Subject: [PATCH 59/62] Minor editorial revisions to spinbutton section for
clarity
---
aria-practices.html | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/aria-practices.html b/aria-practices.html
index 23f402a821..d370f98914 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6702,14 +6702,15 @@
Range properties with sliders
Range properties with spin buttons
- The aria-valuenow, aria-valuemin and aria-valuemax properties are not required for the spinbutton role.
- aria-valuetext can be used when appropriate. However, aria-valuenow, aria-valuemin and aria-valuemax are required if those values are known.
+ The aria-valuemin and aria-valuemax properties are used only when a spinbutton has a defined range.
+ They do not have default values, so if they are not specified, range limits will not be exposed to assistive technologies.
+ Similarly, the aria-valuenow property is set only when a spinbutton has a value.
+ If it is not set, a value is not exposed to assistive technologies for the spinbutton.
+ aria-valuetext can be used when appropriate.
A detailed description of the spinbutton role can be found in the spinbutton design pattern.
-
- This example sets the price of paperclips in cents.
-
+
The following example sets the price of paperclips in cents.
Price per paperclip: $<span id="price">0.50</span>
</div>
-
- The spin button example above can be made using the native HTML <input type="number"> element.
-
+
The spin button example above can be made using the native HTML <input type="number"> element.
+
<label>Price per paperclip: $<input type="number" min="0.01" value="0.5" max="2" step="0.01"></label>
From 07541b7eb695134c981a2c2d79291c1aa568d24a Mon Sep 17 00:00:00 2001
From: Matt King
Date: Mon, 6 Jul 2020 23:15:33 -0700
Subject: [PATCH 60/62] Apply suggestions by @carmacleod from review
Co-authored-by: Carolyn MacLeod
---
aria-practices.html | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/aria-practices.html b/aria-practices.html
index d370f98914..c83e50ebce 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6600,7 +6600,7 @@
Range properties with meter
The aria-valuetext property can be set to a string that makes the meter value understandable. For example, a CPU usage meter value might be conveyed as aria-valuetext="90% of CPU is being used".
-
Here is another example of meter that has a range different from the default of 0 for aria-valuemin and 100 for aria-valuemax.
+
Here is another example of a meter that has a range different from the default of 0 for aria-valuemin and 100 for aria-valuemax.
The spin button example above can be made using the native HTML <input type="number"> element.
From 1985db496e7ffa884884458de078987dd0ce96e3 Mon Sep 17 00:00:00 2001
From: Matt King
Date: Mon, 6 Jul 2020 23:55:09 -0700
Subject: [PATCH 61/62] Clarify usage of min, max, and now per feedback from
@jongund
---
aria-practices.html | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/aria-practices.html b/aria-practices.html
index c83e50ebce..a9c08c390f 100644
--- a/aria-practices.html
+++ b/aria-practices.html
@@ -6479,13 +6479,12 @@
Using aria-valuemin, aria-valuemax and aria-
When the value of a range widget is constrained to known limits, the aria-valuemin and aria-valuemax properties are used to inform assistive technologies of the minimum and maximum values of the range.
For some widgets, assistive technologies use this information to present the current value as a percentage.
When using these properties, set aria-valuemin to the lowest value allowed for the widget and aria-valuemax to the highest allowed value.
- If a range widget represents a value that does not have known limits, omit both aria-valuemin and aria-valuemax.
+ If values for aria-valuemin and aria-valuemax are not set, default values are exposed to assistive technologies unless the widget is a spinbutton, which is the only range widget that does not have default limits.
The aria-valuenow property is used to inform assistive technologies of the current value of a range widget.
- If a range widget has a known value, set aria-valuenow to that value.
- Otherwise, omit the aria-valuenow property.
- If aria-valuemin and aria-valuemax are specified, ensure the value of aria-valuenow falls within the defined range.
+ Set aria-valuenow to the current value of the widget, ensuring the value of aria-valuenow falls within the range defined by aria-valuemin and aria-valuemax.
+ If the current value of a progressbar or spinbutton is indeterminate or unknown, omit The aria-valuenow property.
The aria-valuenow property is required for the meter, scrollbar, separator (if the element is focusable), and slider roles.
The aria-valuenow property is used to inform assistive technologies of the current value of a range widget.
Set aria-valuenow to the current value of the widget, ensuring the value of aria-valuenow falls within the range defined by aria-valuemin and aria-valuemax.
- If the current value of a progressbar or spinbutton is indeterminate or unknown, omit The aria-valuenow property.
+ If the current value of a progressbar or spinbutton is indeterminate or unknown, omit the aria-valuenow property.
The aria-valuenow property is required for the meter, scrollbar, separator (if the element is focusable), and slider roles.