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

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