Closed
Bug 1448205
Opened 8 years ago
Closed 7 years ago
[wpt-sync] Sync PR 10149 - Tests for SVG tabindex/focus/blur
Categories
(Core :: SVG, enhancement, P4)
Core
SVG
Tracking
()
RESOLVED
FIXED
mozilla66
| Tracking | Status | |
|---|---|---|
| firefox66 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 10149 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/w3c/web-platform-tests/pull/10149
Details from upstream follow.
David Storey <dstorey@microsoft.com> wrote:
> Tests for SVG tabindex/focus/blur
>
> SVG defines focus/blur/tabindex as behaving the same as HTML.
>
> This takes some tests from HTML and adapts to the SVG template used in the SVG folder. I included them in the interact folder as that page (scripting) is the one that defines which elements are focusable in SVG.
>
> Apologies if I got the folder structure wrong. I believe I suppose to put the tests in the in the scripted folder.
>
> Note: SVG say that the following are focusable by default:
>
> - the document root element
> - an ‘svg’ element which has zoom and pan controls
> https://svgwg.org/svg2-draft/interact.html#Focus
>
> I only included a test for the root-most SVG element, as SVG further defines that zoom and pan controls only work on the root most SVG element, so it will pass with or without that control.
>
> I also assumed that video/audio with user controls meant the controls attribute.
>
> These tests match the behavior of the HTML equivalents. Edge fails the tabindex tests when checking the content attribute as there is a non-tabindex related bug with attribute reflection in SVG where the canonical case is lowercase. Otherwise those tests would pass.
>
> I couldn't find any HTML tests specific to blur() so I reused the composed test. blur() passes in Edge, but doesn't support event.composed.
>
>
> I didn't add tests for dataset (which is in the same section of the spec) as there are already tests in HTML that detect dataset on SVG
| Reporter | ||
Updated•8 years ago
|
Component: web-platform-tests → SVG
Product: Testing → Core
| Reporter | ||
Comment 1•7 years ago
|
||
| Reporter | ||
Comment 2•7 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=dfebad3e265694d1d7f6bc31d373fbcc73817c40
| Reporter | ||
Comment 3•7 years ago
|
||
| Reporter | ||
Comment 4•7 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=d93308cba468658084f5f7734c8f4aa2d590f73c
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/49cf0f577291
[wpt PR 10149] - Tests for SVG tabindex/focus/blur, a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/0b3c4779c511
[wpt PR 10149] - Update wpt metadata, a=testonly
| Reporter | ||
Comment 6•7 years ago
|
||
Result changes from PR not available.
Comment 7•7 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/49cf0f577291
https://hg.mozilla.org/mozilla-central/rev/0b3c4779c511
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox66:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
You need to log in
before you can comment on or make changes to this bug.
Description
•