LibWeb: Support the “image” synonym for the “img” ARIA role

Additionally: For “img” elements with empty “alt” attributes, change the
default role to the newer, preferred “none” synonym for the older
“presentation” role; import https://wpt.fyi/results/html-aam/roles.html
(which provides test/regression coverage for these changes).
This commit is contained in:
sideshowbarker 2024-12-08 22:29:09 +09:00 committed by Tim Flynn
commit ccbc436e85
Notes: github-actions[bot] 2024-12-12 13:14:53 +00:00
5 changed files with 282 additions and 2 deletions

View file

@ -43,6 +43,7 @@ namespace Web::ARIA {
__ENUMERATE_ARIA_ROLE(gridcell) \
__ENUMERATE_ARIA_ROLE(group) \
__ENUMERATE_ARIA_ROLE(heading) \
__ENUMERATE_ARIA_ROLE(image) \
__ENUMERATE_ARIA_ROLE(img) \
__ENUMERATE_ARIA_ROLE(input) \
__ENUMERATE_ARIA_ROLE(insertion) \