:focus-visible CSS pseudo-classExternal Link

BaselineWidely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2024.

The :focus-visible pseudo-class applies while an element matches the :focus pseudo-class, and the UA determines via heuristics that the focus should be specially indicated on the element (typically via a “focus ring”).

IE
Edge
Firefox
Chrome
Safari
Safari iOS
Opera Mini
Chrome Android
Android Browser
Samsung Internet
Globals: 96.57% of all users can use this feature, 96.57% fully supported, 0% partially supported
✓Supported
✗Not supported
Partial support
Prefixed
Behind a Flag