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

Hi all,

Well i agree with @mrego "**the user interacts with the page**" is not clear.
Is it interacting with focusable elements ? or with everything in the page ?

In this [example](https://codesandbox.io/s/focus-visible-initial-mbvs3n) the **rule number 4** fails when we mouse-click on an element that is not focusable and we move focus to another element with an initial programmatic focus.

### Current behavior:
As long as we dont click on focusable element the :focus-visible will always match after initial programmatic focus.

Please check the example for detailed scenarios.

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


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

Received on Monday, 30 January 2023 12:33:12 UTC