Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[A11y] Use title value when the input type image with empty alt and
non-empty title At the discussion[1], in case of the `img` element, it is written to use the alt even if it is an empty string explicitly. But in case of alt of input type=image, there is no explicit description of empty value. So like aria-label and aria-labelledby, it was understood that if it has an empty value, it allows a meaningful value in the next step to be used. Therefore, the `title` value has been changed to be used as accessible name, according to the accessible name computation algorithm[2], when the `alt` attribute does not provide a meaningful value. [1]: w3c/html-aam#414 [2]: https://www.w3.org/TR/html-aam-1.0/#img-element-accessible-name-computation Signed-off-by: Hunseop Jeong <[email protected]> Bug: 1342873 Change-Id: Ifc7dfcd22897f0a59943c2330b5808afb494f889 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4700003 Reviewed-by: Aaron Leventhal <[email protected]> Commit-Queue: Aaron Leventhal <[email protected]> Cr-Commit-Position: refs/heads/main@{#1177870}
- Loading branch information