Tests:
Test 1
The following tests are of image elements with accessible names provided by use of alt, aria-label, aria-labelledby and the title attribute.
with alt
with title
with aria-label
with aria-labelledby
Expected result:
No failures for use of ARIA roles would be flagged for any of the above examples. Use of img on a named image element is NOT RECOMMENDED. Confornamce checkers may indicate this as a warning.
Test 2
Authors MUST NOT use roles other than none/presentation on an image with an empty alt and no accessible name, and MUST NOT use roles other than none/presentation or img if the element lacks an alt and has no accessible name.
Expected result:
The above 5 examples should not fail allowed role rules. Conformance checkers may produce warnings for use of redundant roles on each of these examples.