by test6554 · 10y ago · 0 comments
If you ask yourself, what is the purpose of CSS vs JavaScript, you will see that this type of functionality probably falls outside the scope of what CSS is meant to do. Also it may take extra time to explain how this works to every new developer. Also accessibility.
Probably people will end up using JS for this, and that's OK, but I really think this approach actually fits the way standards "define" HTML and CSS.
ignoring the fact that there's no :active styling in the css, there is nothing to indicate that to change the tab you need to use different keys