Bug 1896047 part 3: Use CSS alt text as the name for an Accessible if all else fails...
commitdea9f43263f81f913cad590587f3ec2e31ca32c9
authorJames Teh <jteh@mozilla.com>
Fri, 17 May 2024 00:24:15 +0000 (17 00:24 +0000)
committerJames Teh <jteh@mozilla.com>
Fri, 17 May 2024 00:24:15 +0000 (17 00:24 +0000)
treee2b179bdeff32a88e69f632a64145019fff05c6a
parent1b49a39c03087564a7c52280d145591a8ba667d5
Bug 1896047 part 3: Use CSS alt text as the name for an Accessible if all else fails. r=eeejay

This directly handles the case where the CSS content property replaces the content of an element with an image plus alt text.
It is also needed to correctly return the alt text for a pseudo-element ImageAccessible, as implemented in a subsequent patch.

Differential Revision: https://phabricator.services.mozilla.com/D210015
accessible/generic/DocAccessible.cpp
accessible/generic/LocalAccessible.cpp
accessible/tests/browser/tree/browser.toml
accessible/tests/browser/tree/browser_css_alt.js [new file with mode: 0644]