[Webkit-unassigned] [Bug 225148] [selectors] :focus-visible and keyboard events

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 4 23:36:49 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=225148

--- Comment #9 from Manuel Rego Casasnovas <rego at igalia.com> ---
Yeah I know the spec doesn't say anything, and it gives total flexibility to each browser and platform for implementing different things.
So it'd be totally ok from the spec point of view that WebKit still shows the focus ring when clicking a DIV with tabindex.

What I meant is that the main purpose of having :focus-visible is precisely to avoid folks from doing things like ":focus { outline: none; }", which is widely used to avoid the focus rings in things like DIV with tabindex.

So we could do something different in WebKit, and keep showing the focus ring when a DIV with tabindex is focused, but then people will start to do ":focus-visible { outline: none; }" and that wouldn't be really nice. Somehow defeating the purpose of having this feature.

I know it's totally correct spec wise, but it'd be not what other browsers do, and neither what people are expecting from this feature I believe.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210505/83811d3a/attachment.htm>


More information about the webkit-unassigned mailing list