Changeset 286783 in webkit


Ignore:
Timestamp:
Dec 9, 2021, 9:22:14 AM (3 years ago)
Author:
Antti Koivisto
Message:

Enable :focus-visible pseudo-class by default
https://bugs.webkit.org/show_bug.cgi?id=234019
<rdar://problem/86218583>

Reviewed by Brent Fulgham.

This enables :focus-visible pseudo-class for authors.

It also changes :focus-visible behavior in the user agent stylesheet so that

  • <div tabindex> (or any element with 'tabindex' attribute that is not focusable otherwise) will not show focus indicator when focused via click/tap/script.
  • <details> element will not show focus indicator when focused via click/tap/script.

Both still show focus indicator when focused via keyboard (tab) navigation.

  • Scripts/Preferences/WebPreferencesExperimental.yaml:
Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r286772 r286783  
     12021-12-09  Antti Koivisto  <antti@apple.com>
     2
     3        Enable :focus-visible pseudo-class by default
     4        https://bugs.webkit.org/show_bug.cgi?id=234019
     5        <rdar://problem/86218583>
     6
     7        Reviewed by Brent Fulgham.
     8
     9        This enables :focus-visible pseudo-class for authors.
     10
     11        It also changes :focus-visible behavior in the user agent stylesheet so that
     12
     13        - <div tabindex> (or any element with 'tabindex' attribute that is not focusable otherwise) will not show focus
     14          indicator when focused via click/tap/script.
     15        - <details> element will not show focus indicator when focused via click/tap/script.
     16
     17        Both still show focus indicator when focused via keyboard (tab) navigation.
     18
     19        * Scripts/Preferences/WebPreferencesExperimental.yaml:
     20
    1212021-12-09  Myles C. Maxfield  <mmaxfield@apple.com> and Don Olmstead  <don.olmstead@sony.com>
    222
  • trunk/Source/WTF/Scripts/Preferences/WebPreferencesExperimental.yaml

    r286754 r286783  
    536536  defaultValue:
    537537    WebKitLegacy:
    538       default: false
    539     WebKit:
    540       default: false
    541     WebCore:
    542       default: false
     538      default: true
     539    WebKit:
     540      default: true
     541    WebCore:
     542      default: true
    543543
    544544# FIXME: This is on by default in WebKit2. Perhaps we should consider turning it on for WebKitLegacy as well.
Note: See TracChangeset for help on using the changeset viewer.