Bug 31988 - Web Inspector: visualize search-by-selector results on the overlay and DOM content view
Summary: Web Inspector: visualize search-by-selector results on the overlay and DOM co...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P3 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2009-11-30 10:56 PST by Sam Aaron
Modified: 2017-04-06 10:53 PDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.