Bug 131389

Summary: Web Inspector: Preference to "always display focus ring" overriding site styles
Product: WebKit Reporter: James Craig <jcraig>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Enhancement CC: graouts, inspector-bugzilla-changes, jcraig, mike, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

James Craig
Reported 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.
Attachments
Radar WebKit Bug Importer
Comment 1 2014-04-08 13:28:59 PDT
Timothy Hatcher
Comment 2 2014-04-08 13:35:00 PDT
What would this be used for?
James Craig
Comment 3 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.
Note You need to log in before you can comment on or make changes to this bug.