Closed Bug 1878355 Opened 2 years ago Closed 1 year ago

Failing WPT accname/name/comp_name_from_content.html

Categories

(Core :: Disability Access APIs, defect)

defect

Tracking

()

RESOLVED FIXED
128 Branch
Tracking Status
firefox128 --- fixed

People

(Reporter: twisniewski, Assigned: nlapre)

References

(Blocks 2 open bugs)

Details

Attachments

(2 files)

Blocks: 1878356
No longer blocks: 1878356

Noting for later that we're currently failing 13 tests in this file.

Severity: -- → S4

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.

Assignee: nobody → nlapre
Status: NEW → ASSIGNED

Note that the above patch only fixes 3 of the failures in this file. The bug should remain open even after that patch lands.

Keywords: leave-open

After a bit of investigation, I think that fixing the following test failures in this test file are dependent on the resolution of Bug 1281158:

  • button name from fallback content with ::before and ::after
  • heading name from fallback content with ::before and ::after
  • link name from fallback content with ::before and ::after
  • button name from fallback content mixing attr() and strings with ::before and ::after
  • heading name from fallback content mixing attr() and strings with ::before and ::after
  • link name from fallback content mixing attr() and strings with ::before and ::after

The resolution of that bug might fix those six tests, but it's worth double-checking once that's done.

Depends on: 1281158
Pushed by nlapre@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/32fea4291314 Include display: inline-block when adding spaces between text alternatives, r=Jamie

The Acc Name spec requires that, "if [...] the current node is not already part
of an ongoing aria-labelledby or aria-describedby traversal," UAs should not
continue to follow aria-labelledby / aria-describedby IDREFs. It also requires
that "[e]ach node in the subtree is consulted only once." This revision
implements these rules and updates relevant tests, including removal of WPT
expected-fail designations. The concept of sInitiatorAcc has been expanded - we
now track all referenced accessibles. We also track whether we're in an
aria-labelledby or aria-describedby traversal.

Simple test case for CSS content alt text:

data:text/html,<style> button::before { content: url("https://via.placeholder.com/10x10.png") / "before"; } </style><button>button

Depends on: 1896047
Pushed by nlapre@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9e47a3fef5c4 Restrict ARIA IDREF, node consultation in acc name traversals, r=Jamie
Blocks: 1885071

Two failing tests remain in this test file, both of which I think are invalid. Discussing that here. My hope is that, once we resolve that issue in the web platform tests repo, we'll be able to close this issue with no other patches to Gecko.

Blocks: 1652712
Regressions: 1898661
Regressions: 1903713
Keywords: leave-open
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: