Re: [csswg-drafts] [selectors] :focus-visible matches on initial programmatic focus (#5885)

Right, thus if it's false it never indicates focus, which means it'll not match the pseudo-class.

The spec seems clear, but I wrote it so I'm obviously biased :)

But the spec is basically saying (in JS terms):

```
let matchesFocusVisible = options.focusVisible || (options.focusVisible === undefined && heuristicMatches);
```

Right? Which means that the false case is well-defined, it just works by not indicating focus.

I'll send an MDN PR tomorrow once I'm on my desktop, if I don't forget :)

-- 
GitHub Notification of comment by emilio
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5885#issuecomment-2227388056 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Sunday, 14 July 2024 15:32:59 UTC