W3C home > Mailing lists > Public > www-archive@w3.org > February 2021

Re: Questions about the :focus-visible heuristics

From: Emilio Cobos Álvarez <emilio@crisal.io>
Date: Thu, 18 Feb 2021 23:38:42 +0100
Message-ID: <fed711c2-6fc2-13f4-f0be-1a59ecde93ce@crisal.io>
To: "Tab Atkins Jr." <jackalmage@gmail.com>, Alice Boxhall <aboxhall@google.com>
Cc: fantasai <fantasai@inkedblade.net>, www-archive@w3.org
On 2/18/21 22:42, Tab Atkins Jr. wrote:
> All of them instead seem
> to treat "focused by script" the same as "focused by a click",
> regardless of what was previously focused.

That doesn't seem true? This shows an outline in Firefox (85 and 
Nightly) and Chrome (Dev edition), afaict:

<!doctype html>
<div tabindex=0>
   Should see an outline.
</div>
<script>
   onload = () => document.querySelector("div").focus();
</script>

What am I missing?

   -- Emilio

> Related, it *seems* like the "Conversely, ..." bullet point is *just*
> intended to modify the immediately preceding bullet point, not the
> rest of the list. Is this right? I've just pushed some edits that
> merge them into a single bullet point on the assumption that this is
> correct.
> 
> ~TJ
> 
Received on Thursday, 18 February 2021 22:38:57 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 18 February 2021 22:38:57 UTC