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

Nadya678 has just created a new issue for https://github.com/w3c/csswg-drafts:

== Please add "tab-index" to CSS specification ==
The needed specification:
`tab-index: <numeric-signed> | none | inherit | unset; `
If -1 or lower, the element is focusable by mouse/touch but not TAB key.
If 0, the element has default tab order and is focusable by mouse/touch.
If greater than 0, the number precise order of in tab queue due to ascending values.
if "none" the element is not focusable by keyboard and not focusable via touch/mouse. 

Reason:
The CSS including floating, position absolute, fixed and relative can change the visual order of elements, The developer shall have a tool to set appropriate TAB order for all elements. Additionally if any "modal" dialog "window" will be shown via CSS (it is possible!), here shall be possibility to disable tab-index (via "-1" value) in the background without changes in markup (HTML). 

If it is needed, I can send my private (commercial) solutions for "modal" dialog "windows" that are using only HTML5 and CSS without any scripts. It is real requirement. 

On the Stack Overflow you also can find questions how to disable element via CSS or how to change tabindex by CSS only. 

BTW. Opera from 11.5 to 12 implemented this style as nav-index partially. Thus the name may also be: nav-index instead of tab-index. 

Redirected from html thread: https://github.com/whatwg/html/issues/2953

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1748 using your GitHub account

Received on Tuesday, 22 August 2017 10:27:14 UTC