From ffd666af8b8f213550d26f144210c4efdba13dba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Wed, 13 Jul 2022 05:58:59 +0200 Subject: [PATCH] Add a focusVisible option to element.focus() Closes #7830. --- source | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source b/source index 217a981efbc..3e25629ae49 100644 --- a/source +++ b/source @@ -3867,6 +3867,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • :focus-visible pseudo-class
  • +
  • indicate focus
  • The following features are defined in CSS Values and Units:

    dictionary FocusOptions {
       boolean preventScroll = false;
    +  boolean focusVisible;
     };
    @@ -77630,6 +77632,11 @@ END:VCARD
  • Run the focusing steps for the element.

  • +
  • If the value of the focusVisible dictionary member of + options is true, or is not present but in an implementation-defined way + the user agent determines it would be best to do so, then indicate focus.

  • +
  • If the value of the preventScroll dictionary member of options is false, then scroll the element