Bug 211109

Summary: Web Inspector: Debug: "Outline focused element" should also outline elements with tabIndex=0
Product: WebKit Reporter: Nikita Vasilyev <nvasilyev>
Component: Web InspectorAssignee: Nikita Vasilyev <nvasilyev>
Status: RESOLVED FIXED    
Severity: Normal CC: hi, inspector-bugzilla-changes, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
[Image] With patch applied
none
Patch none

Description Nikita Vasilyev 2020-04-27 18:00:01 PDT
Created attachment 397775 [details]
[Image] With patch applied

Outlining elements with tabIndex=0 helps me to see what's tabbable and what isn't.
It saves me time tabbing back and forth between elements.
Comment 1 Nikita Vasilyev 2020-04-27 18:01:57 PDT
Created attachment 397776 [details]
Patch
Comment 2 Devin Rousso 2020-04-28 12:11:32 PDT
Comment on attachment 397776 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=397776&action=review

r=me

> Source/WebInspectorUI/UserInterface/Debug/Bootstrap.css:26
> +body.focus-debug [tabindex="0"] {

Would it be worth having additional colors for `[tabindex="-1"]` and `[tabindex]:not([tabindex="-1"], [tabindex="0"])` as well?
Comment 3 Nikita Vasilyev 2020-04-28 15:36:34 PDT
Comment on attachment 397776 [details]
Patch

(In reply to Devin Rousso from comment #2)
> Comment on attachment 397776 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=397776&action=review
> 
> r=me
> 
> > Source/WebInspectorUI/UserInterface/Debug/Bootstrap.css:26
> > +body.focus-debug [tabindex="0"] {
> 
> Would it be worth having additional colors for `[tabindex="-1"]` and
> `[tabindex]:not([tabindex="-1"], [tabindex="0"])` as well?

I didn't find that particularly useful, personally.
Comment 4 EWS 2020-04-28 15:57:31 PDT
Committed r260853: <https://trac.webkit.org/changeset/260853>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 397776 [details].
Comment 5 Radar WebKit Bug Importer 2020-04-28 15:58:16 PDT
<rdar://problem/62553349>