Bug 31988

Summary: Web Inspector: visualize search-by-selector results on the overlay and DOM content view
Product: WebKit Reporter: Sam Aaron <samaaron.public>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, bweinstein, inspector-bugzilla-changes, me, pmuellr, rik, webkit-bug-importer
Priority: P3 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

Description Sam Aaron 2009-11-30 10:56:47 PST
SelectorGadget (http://www.selectorgadget.com/) is a really useful Javascript tool that allows you to enter a mode in which you can directly interact with the webpage and through the selection and deselection of page elements you can narrow down on a css selector for the highlighted items on the screen. You can also directly enter a css selector and see the matching elements become highlighted.

I'm thinking that the interface might be similar to the search interface: the screen goes slightly grey, and the highlighted nodes pop up in an animated fashion to make the user.

It would also be wonderful to have this interact with the inspector, it would be a more interactive version of the 'right-click inspect element. By mousing over an element, the html subtree in the Inspector would highlight, and similar to the suggestion above, the css selector generated would also highlight the html subtree.
Comment 1 Radar WebKit Bug Importer 2014-01-27 15:18:57 PST
<rdar://problem/15919605>
Comment 2 Blaze Burg 2017-04-06 10:53:44 PDT
Hi Sam, most of what you mentioned that's not related to synthesizing a selector already works:

- Selecting an element reveals it in the Elements tab and in console
- highlighting a selector in the CSS Rules sidebar highlights all matching rules on the page

I don't think we want to incorporate the selector synthesis stuff if it's already possible to do with a bookmarklet.