Re: [csswg-drafts] paradox issue when "tabindex" is used together with "display: none/contents" or "visibility: hidden"

The issue is that there's simply nothing *there* to be focused; the whole point of focusing is to visually indicate where your current point-of-attention is, which will respond to keyboard events/etc. Thus, focusing something that is just completely not rendered *at all* (and which will *not* respond to keyboard events/etc) doesn't make much sense.

The standard way to achieve the effect you're talking about is to fake-hide the elements you want to be focusable-but-not-currently-displayed by making them `position:absolute` and positioning them off-screen, then reverting them to normal display on :focus.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3015#issuecomment-412611728 using your GitHub account

Received on Monday, 13 August 2018 18:08:53 UTC