https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo
https://github.com/WICG/focus-visible/blob/master/explainer.md
https://docs.google.com/document/d/1HeGGnAX2T8RlSoeF4f_hxPWlMMHR6uIkkSbKIdRCy7Y/edit?usp=sharing
https://github.com/w3ctag/design-reviews/issues/233
CSS Selectors 4 introduces the focus-indicated pseudo-class :focus-visible.
Motivation
Quoted from the WICG explainer:
The status quo, :focus, is quite problematic:
Many developers disable the default focus ring in their CSS styles, others attempt to style it in concert with their design. The former often seems to be a result of finding the default focus ring both aesthetically unpleasant and confusing to users when applied after a mouse or touch event and introduces accessibility problems. The latter inevitably creates considerably more of the kind of problem that the former was trying to solve.
Some native elements in some browsers, notably <button> in Chrome, have a "magic" focus style which does not apply unless focus was received via a keyboard interaction.
To deal with this:
It seems evident that a visual indication of what has focus is primarily interesting to a user who is using the keyboard to interact with the page. A user using any kind of pointing device would only be interested in what is in focus if they were just about to use the keyboard - otherwise, it is irrelevant and potentially confusing.
Thus, if we only show the focus ring when relevant, we can avoid user confusion and avoid creating incentives for developers to disable it.
A mechanism for exposing focus ring styles only when the keyboard is the user's current input modality gives us this opportunity.
None.
https://bugs.chromium.org/p/chromium/issues/detail?id=817199
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/b1bd1969-8846-47b0-a8db-dd38a4997c62%40chromium.org.