Bug 131389 - Web Inspector: Preference to "always display focus ring" overriding site styles
Summary: Web Inspector: Preference to "always display focus ring" overriding site styles
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Enhancement
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2014-04-08 13:28 PDT by James Craig
Modified: 2016-12-13 15:33 PST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Craig 2014-04-08 13:28:29 PDT
Web Inspector: ER: preference to "always display focus ring" overriding site styles. This can probably just be implemented as a user style sheet injection that adds a *:focus {} block using the !important directive.
Comment 1 Radar WebKit Bug Importer 2014-04-08 13:28:59 PDT
<rdar://problem/16556319>
Comment 2 Timothy Hatcher 2014-04-08 13:35:00 PDT
What would this be used for?
Comment 3 James Craig 2014-04-08 14:45:17 PDT
Many web sites and web apps have a proliferation of outline: 0, because designers dislike focus styles and misguided developers disable the outline entirely rather than implementing an alternative. 

This allows an engineer to clearly see what the event target for keyboard events will be, even if the style is modified to not display focus on anything, or display as if focus is on an ancestor or descendant node. For example, some implementations of grouped widgets like tabs leave focus on each tab, and some leave focus on the tab list container. Some even ignore focus and change styles based on body element event delegation. SproutCore used to be this way, and the control libraries still hide focus outlines sometimes.

Related to bug 127998.