Changeset 286783 in webkit

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  
     1
     2
     3
     4
     5
     6
     7
     8
     9
     10
     11
     12
     13
     14
     15
     16
     17
     18
     19
     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: e
     539    WebKit:
     540      default: e
     541    WebCore:
     542      default: e
    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.