зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1878355: Include display: inline-block when adding spaces between text alternatives, r=Jamie
When Gecko computes the text alternative for accessibles, it avoids jamming names together without spaces between them for elements with block-like CSS display styles. This revision adds "inline-block" to that block-like list. It also removes the relevant expected failures from the WPT meta file. Differential Revision: https://phabricator.services.mozilla.com/D204561
This commit is contained in:
Родитель
b1557604cb
Коммит
ee1205dd19
|
@ -165,6 +165,7 @@ nsresult nsTextEquivUtils::AppendFromAccessible(Accessible* aAccessible,
|
|||
// together in final name.
|
||||
const nsStyleDisplay* display = frame->StyleDisplay();
|
||||
if (display->IsBlockOutsideStyle() ||
|
||||
display->mDisplay == StyleDisplay::InlineBlock ||
|
||||
display->mDisplay == StyleDisplay::TableCell) {
|
||||
isHTMLBlock = true;
|
||||
if (!aString->IsEmpty()) {
|
||||
|
|
|
@ -105,7 +105,7 @@
|
|||
// The label element contains the button. The name is calculated from
|
||||
// this button.
|
||||
// Note: the name contains the content of the button.
|
||||
testName("btn_label_inside", "text10text");
|
||||
testName("btn_label_inside", "text 10 text");
|
||||
|
||||
// The label element and the button are placed in the same form. Gets
|
||||
// the name from the label subtree.
|
||||
|
|
|
@ -20,15 +20,6 @@
|
|||
[heading with link referencing image using aria-labelledby, that in turn references itself and another element via aria-labelledby]
|
||||
expected: FAIL
|
||||
|
||||
[button name from content for each child (no space, display:inline-block)]
|
||||
expected: FAIL
|
||||
|
||||
[heading name from content for each child (no space, display:inline-block)]
|
||||
expected: FAIL
|
||||
|
||||
[link name from content for each child (no space, display:inline-block)]
|
||||
expected: FAIL
|
||||
|
||||
[button name from fallback content mixing attr() and strings with ::before and ::after]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче