W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2017

Re: [csswg-drafts] Please add "tab-index" to CSS specification

From: Brad Kemper via GitHub <sysbot+gh@w3.org>
Date: Wed, 30 Aug 2017 21:21:12 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-326122812-1504128063-sysbot+gh@w3.org>
You could also have an index on the group element itself, not to cause the grouping box to receive focus, but to set the where in the tabbing order the descendants of the box fall in relation to items outside that box. This would give the author a lot of power to control the tabbing at micro and macro levels. 

For instance: 

`<input id=a>
<input id=b>
<input id=c>
<div>
    <input id=d>
    <input id=e>
</div>

<style>
    #a { tab-index:0; }
    div { tab-index-group: isolate; tab-index:1; }
    #b, #c { tab-index: 2; }
    div #d { tab-index: 1; }
    div #e { tab-index: 0; }
</style>`

The order would be a, e, d, b, c


-- 
GitHub Notification of comment by bradkemper
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1748#issuecomment-326122812 using your GitHub account
Received on Wednesday, 30 August 2017 21:21:08 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:17 UTC