Closed Bug 1448205 Opened 6 years ago Closed 5 years ago

[wpt-sync] Sync PR 10149 - Tests for SVG tabindex/focus/blur

Categories

(Core :: SVG, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
mozilla66
Tracking Status
firefox66 --- fixed

People

(Reporter: mozilla.org, 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
Component: web-platform-tests → SVG
Product: Testing → Core
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
Result changes from PR not available.
https://hg.mozilla.org/mozilla-central/rev/49cf0f577291
https://hg.mozilla.org/mozilla-central/rev/0b3c4779c511
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
You need to log in before you can comment on or make changes to this bug.