[wpt-sync] Sync PR 63269 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=309041
Categories
(Core :: SVG, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 63269 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63269
Details from upstream follow.
Ahmad Saleem <ahmad.saleem792+github@gmail.com> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=309041
WebKit export from bug: SVG elements inside hidden containers should not be focusable
<pre>
SVG elements inside hidden containers should not be focusableAccording to the specification [1], a non-rendered element can never receive
focus, regardless of the value of thetabindexattribute. If a script
programmatically assigns focus to a non-rendered or otherwise un-focusable
element, the focusing call is aborted.Never-rendered SVG element types (e.g. <defs>, <clipPath>, <mask>, <marker>,
<pattern>, <linearGradient>, <radialGradient>, <symbol>) and any elements
inside them are never rendered, and therefore should not be focusable either.Add a check in Element::isFocusable() that walks the render tree starting from
the element's own renderer and returns false if it, or any ancestor, is a
RenderSVGHiddenContainer or LegacyRenderSVGHiddenContainer. Starting the walk
at the element's own renderer also rejects a hidden container that is focused
directly (e.g. <defs tabindex="0">), not only its descendants.WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=309041">https://bugs.webkit.org/show_bug.cgi?id=309041</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/322650@main">https://commits.webkit.org/322650@main</a>
</pre>
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=100515
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 37 tests and 1 subtests
Status Summary
Firefox
OK : 1[GitHub] 36[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: 8[GitHub] 9224[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-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 9225[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 29
Chrome
OK : 1
PASS: 8
Safari
OK : 1
PASS: 8
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /svg/interact/use-instance-hover.html [wpt.fyi]:
PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],SKIP[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] - /svg/interact/parsing/pointer-events-computed.svg [wpt.fyi]
- Property pointer-events value 'bounding-box':
FAIL
- Property pointer-events value 'bounding-box':
- /svg/interact/parsing/pointer-events-valid.svg [wpt.fyi]
- e.style['pointer-events'] = "bounding-box" should set the property value:
FAIL
- e.style['pointer-events'] = "bounding-box" should set the property value:
- /svg/interact/scripted/ellipse-hittest.html [wpt.fyi]
- elementFromPoint(...) on <ellipse>s with continuous strokes, element at (245, 180):
FAIL - elementFromPoint(...) on <ellipse>s with continuous strokes, element at (130, 295):
FAIL
- elementFromPoint(...) on <ellipse>s with continuous strokes, element at (245, 180):
- /svg/interact/scripted/rect-hittest-002.html [wpt.fyi]
- elementFromPoint(...) on <rect>s with simple strokes, element at (180, 20):
FAIL - elementFromPoint(...) on <rect>s with simple strokes, element at (180, 120):
FAIL - elementFromPoint(...) on <rect>s with simple strokes, element at (60, 120):
FAIL - elementFromPoint(...) on <rect>s with simple strokes, element at (290, 70):
FAIL - elementFromPoint(...) on <rect>s with simple strokes, element at (330, 150):
FAIL
- elementFromPoint(...) on <rect>s with simple strokes, element at (180, 20):
- /svg/interact/scripted/svg-pointer-events-bbox.html [wpt.fyi]
- group1 contains point at (100, 100):
FAIL - group1 contains point at (137, 84):
FAIL - group1 contains point at (51, 156):
FAIL - group1 contains point at (70, 120):
FAIL - circle2 contains point at (400, 150):
FAIL - circle2 contains point at (432, 182):
FAIL - circle2 contains point at (361, 122):
FAIL - bbox of circle2 contains point at (438, 103):
FAIL - bbox of circle2 contains point at (450, 200):
FAIL - bbox of text1 contains point at (435, 32):
FAIL - bbox of text1 contains point at (115, 46):
FAIL - bbox of text2 contains point at (295, 214):
FAIL - image1 contains point at (19, 215):
FAIL - image1 contains point at (45, 225):
FAIL
- group1 contains point at (100, 100):
- /svg/interact/scripted/tabindex-focus-flag.svg [wpt.fyi]
- iframe should be focusable.:
FAIL - audio[controls] should be focusable.:
FAIL - video[controls] should be focusable.:
FAIL - canvas[tabindex] should be focusable.:
FAIL - mesh[tabindex] should be focusable.:
FAIL - unknown[tabindex] should be focusable.:
FAIL
- iframe should be focusable.:
Tests Disabled in Gecko Infrastructure
- /svg/interact/use-instance-hover.html [wpt.fyi]:
PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],SKIP[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]
Description
•