ARIA in HTML - test cases for aria-valuemax

last updated 14 March 2021

max is allowed on meter, progress and input type date, month, week, time, datetime-local, number, range.

Tests:

Test 1

Authors SHOULD NOT use the aria-valuemax attribute on any element which allows the max attribute. Use the max attribute instead.

inputs

meter

6 blocks used (out of 8 total)

progress

0%

Expected result:
Flag error or warning to authors to use max attribute instead. Authors may not be able to replicate all the necessary functionality of the native max attribute.

Test 2

Authors MUST NOT use the aria-valuemax on any element which also has a max attribute, even if the values of each attribute match.

inputs

meter

6 blocks used (out of 8 total)

progress

0%

Expected result:
Error and tell authors to use max attribute by itself. Authors may not be able to replicate all the necessary functionality of the native max attribute.