Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-ui-4] Scoping navigation/focus subtrees (nav-dir, etc.) #1949

Closed
cookiecrook opened this issue Nov 7, 2017 · 1 comment
Closed

[css-ui-4] Scoping navigation/focus subtrees (nav-dir, etc.) #1949

cookiecrook opened this issue Nov 7, 2017 · 1 comment

Comments

@cookiecrook
Copy link
Contributor

Re-adding from https://lists.w3.org/Archives/Public/www-style/2013May/0076.html

As specified, nav-index has the same serious negative implications of positive integer values of tabindex, where in order to be specified usefully, each node has to know about the layout order of every other node in the document. If you're only specifying nav index on first level branches, this is fine, but there is no good way to use this on leaf nodes, and it has severe consequences for breaking index order of keyboard navigation.

This particular problem might be solvable with an additional property used on parent or ancestor nodes such as:

nav-context:  ignore (default) | relative | absolute;

Or potentially by allowing the nav-index context to inherit and cascade. For example:

[role="toobar"] {
	nav-index: 0; /* retain default tab order until you the user reaches this element or a descendant. */
	nav-context: relative; /* sets the root nav context for this container */
}
[role="toobar"] button#b1 {
	nav-index: 1; /* first focusable element within the toolbar; does not override root tab order. */
}
[role="toobar"] button#b2 {
	nav-index: 2; /* second focusable element within the toolbar; does not override root tab order. */
}
@frivoal frivoal changed the title Scoping navigation/focus subtrees (nav-dir, etc.) [css-ui-4] Scoping navigation/focus subtrees (nav-dir, etc.) Nov 15, 2017
@frivoal frivoal self-assigned this Nov 15, 2017
@frivoal frivoal added the css-ui-4 Current Work label Nov 15, 2017
@frivoal
Copy link
Collaborator

frivoal commented Nov 15, 2017

Based on the CSS-WG having decided to push this general topic to WICG (see meeting minutes), I'm closing this issue in favor of WICG/spatial-navigation#10.

To be clear, this is not meant to be a rejection of what has been proposed here, only moving the discussion to a group that is tailored for this problem space and to which the CSSWG has decided to move the discussion to.

This specific thread has been documented in the wiki page dedicated to collecting discussions on this topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants