Clarify focus management for SVG & define rendered/non-rendered elements #55
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request consists of two new sections, at least one of which (focus management) needs discussion & approval by the working group because it's introducing new normative requirements. Links are to compiled versions of the specs.
Rendering definitions:
Shouldn't be controversial. Gathers up content and implicit behavior into clear definitions. Some links/bookmarks in other specs may be broken by moving the section on display/visibility properties to the rendering chapter from the painting chapter.
Focus management
Addresses the issues brought up by @richschwer in Issue #50.
Introduces the following normative requirements (based on usability problems in current implementations of keyboard focus control in SVG):
focusable
attribute, but authors should not use it. I wouldn't object to downgrading "should" to "may", but I don't think it would be a large implementation burden to add.In addition, I've added a few important clarifications / consequences which aren't new requirements (in some cases, text is directly copied from HTML) but are relevant to SVG authors:
:focus
can be used to change focus styles, but SHOULD NOT be used to remove visual focus indicatorspointer-events
to also be keyboard-operable.tabindex
should issue aclick
event on keyboard activation.