Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Compatibility of focusability with HTML & platform conventions #736

@AmeliaBR

Description

@AmeliaBR

From @litherum / @rniwa

https://svgwg.org/svg2-draft/single-page.html#interact-Focus mentions how any element that generates a scrollable region should be treated as if tabindex=0 is set. This is a weird “should” statement given HTML doesn’t do this. It’s also problematic because it would mean that we can’t decide whether an element is focusable or not without layout information

The section also mentions “focusable” content attribute. But it doesn’t really specify what happens when its value is set to “auto” or whether it supersedes tabindex=-1 or not:
https://www.w3.org/TR/SVGTiny12/interact.html#focusable-attr

For example, this SVG tutorial asserts that “focusable” would override tabindex: https://allyjs.io/tutorials/focusing-in-svg.html#making-svg-elements-focusable

Given Firefox nor Chrome seems to implement this content attribute, it’s hard to tell what the right behavior is.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions