Open
Description
https://html.spec.whatwg.org/#phrasing-content-3 has:
:focus-visible { outline: auto }
Which expands to:
:focus-visible {
outline-color: currentColor;
outline-style: auto;
outline-width: medium; /* Effectively 3px */
}
But that doesn't match browsers. Gecko is the closest:
:focus-visible {
outline: 1px auto;
}
Chromium has:
:focus-visible {
outline: auto 1px -webkit-focus-ring-color;
}
WebKit has:
:focus-visible {
#if defined(WTF_PLATFORM_IOS_FAMILY) && WTF_PLATFORM_IOS_FAMILY
outline: auto 3px -webkit-focus-ring-color;
#else
outline: auto 5px -webkit-focus-ring-color;
#endif
}
Would there be any interest of harmonizing this? -webkit-focus-ring-color
is a non-standard system color, which could be stadardized e.g., in w3c/csswg-drafts#5900.
Note that I don't think this causes serious compat issues in the wild, but I think it would be nice to be interoperable here. Someone filed a bug on the lack of interop here.
What's the reason for the different border widths in WebKit @smfr?
cc @lilles / @tabatkins / @whatwg/css