aria-label undefined on img w/ empty alt but w/ title
Rationale
These tests are meant to exercise the case in https://w3c.github.io/accname/#computation-steps where if the aria-label is undefined in step 2D, then the aria-label is not used and instead in step 2E the Host Language Label is used (alt or title in this case). However, the tests are setting the attribute to the literal string "undefined", so it's by design that this value is used.
Additionally the last two tests suggest that the elements should have a title set but that is missing.
Test List
In accname/name/comp_label.html:
Rationale
These tests are meant to exercise the case in https://w3c.github.io/accname/#computation-steps where if the aria-label is undefined in step 2D, then the aria-label is not used and instead in step 2E the Host Language Label is used (
alt
ortitle
in this case). However, the tests are setting the attribute to the literal string"undefined"
, so it's by design that this value is used.Additionally the last two tests suggest that the elements should have a
title
set but that is missing.All engines currently fail these tests.
There is already a PR to remove these, although there's been no activity for a month: https://github.com/web-platform-tests/wpt/pull/44600
I think either the tests should be corrected, or the PR to remove them should be landed.