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:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.