[csswg-drafts] [selectors-4] Could we add :mouse-focus or :keyboard-focus?

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

== [selectors-4] Could we add :mouse-focus or :keyboard-focus? ==
Hello!

[the focus pseudo](https://drafts.csswg.org/selectors-4/#the-focus-pseudo)

Sometimes we want to distinguish between a keyboard focus and a mouse focus. For example, when the element is focused by a mouse click, we want to hide the outline. It would be great if this can be done by css rather than javascript.
Something like `:mouse-focus` or `:keyboard-focus` would help.

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

Received on Monday, 10 September 2018 16:29:25 UTC