Re: Questions about the :focus-visible heuristics

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