Closed Bug 2086830 Opened 1 month ago Closed 19 days ago

[wpt-sync] Sync PR 64173 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=321874

Categories

(Core :: Disability Access APIs, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 64173 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/64173
Details from upstream follow.

Alan Baradlay <zalan@apple.com> wrote:

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=321874

WebKit export from bug: Accessible name of a display:<!----> contents element includes text from its siblings

<pre>
Accessible name of a display: contents element includes text from its siblings

Name from contents walks the element's children by taking its first child and then repeatedly the next
sibling. A display: contents element has no box for its children to hang off, so the object after its last
child is one of the element's own siblings, and the walk carries on into it. The check meant to stop this only
did so when the next object had a display: contents parent of its own that differed, which the siblings do
not have, so nothing stopped it. Ask instead whether the next object is still a child of the element we
started from.

Chrome and Firefox name all of the cases in the test "x". Whether the leak was visible depended on what
followed in the markup, which is why the div at line 66 of
css/css-display/accessibility/display-contents-role-and-label.html reported "x x x x" while the same shape
with the link role a hundred lines later reported "x": the latter is followed by a display: contents list
whose item did trip the old check, and the two objects it had already walked into were whitespace only.

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=321874">https://bugs.webkit.org/show_bug.cgi?id=321874</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/319287@main">https://commits.webkit.org/319287@main</a>
</pre>

Component: web-platform-tests → Disability Access APIs
Product: Testing → Core

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 18 tests and 4 subtests

Status Summary

Firefox

OK : 1[GitHub] 18[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 4[GitHub] 462[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 18

Chrome

OK : 1
PASS: 4

Safari

OK : 1
PASS: 4

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Status: NEW → RESOLVED
Closed: 19 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.