WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
152680
Web Inspector: Add indicator that element has pseudo-class in DOM tree
https://bugs.webkit.org/show_bug.cgi?id=152680
Summary
Web Inspector: Add indicator that element has pseudo-class in DOM tree
Devin Rousso
Reported
2016-01-03 20:42:49 PST
It is a bit hard to find that one element with the forced :hover style just by looking at the styles panel (especially since, if it's long enough, it automatically scrolls the pseudo-classes out of view).
Attachments
Patch
(4.33 KB, patch)
2016-01-03 20:50 PST
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
After patch is applied
(7.19 MB, video/quicktime)
2016-01-06 14:31 PST
,
Devin Rousso
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2016-01-03 20:43:01 PST
<
rdar://problem/24035315
>
Devin Rousso
Comment 2
2016-01-03 20:50:45 PST
Created
attachment 268172
[details]
Patch
Timothy Hatcher
Comment 3
2016-01-06 10:45:03 PST
Comment on
attachment 268172
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=268172&action=review
> Source/WebInspectorUI/UserInterface/Views/DOMTreeOutline.css:106 > + background-color: hsl(212, 92%, 54%); > + border-radius: 50%;
A colored circle that fades out? Can you post a screenshot or animated GIF?
Devin Rousso
Comment 4
2016-01-06 14:31:05 PST
Created
attachment 268408
[details]
After patch is applied It doesn't fade in/out as that would require the ::before element to always be present (so that "content" doesn't change) and I figured that it wasn't a very good idea... Also, not entirely sure how to make gif's using builtin stuff on ElCap, but whatever Nikita uses is awesome, so if someone could point me to that I would be forever grateful.
Nikita Vasilyev
Comment 5
2016-01-07 04:07:56 PST
(In reply to
comment #4
)
> Also, not entirely sure how to make gif's using builtin stuff on ElCap, but > whatever Nikita uses is awesome, so if someone could point me to that I > would be forever grateful.
I use
http://www.cockos.com/licecap/
Devin Rousso
Comment 6
2016-01-07 08:04:22 PST
(In reply to
comment #5
)
> I use
http://www.cockos.com/licecap/
Is this also the one that shows an icon when a special key is pressed so that the viewer knows whether I hit option/command? I really like that part about your screenshots :)
Timothy Hatcher
Comment 7
2016-01-07 10:17:47 PST
Oh I see, the video helped! Looks good to me.
Joseph Pecoraro
Comment 8
2016-01-07 10:58:38 PST
Comment on
attachment 268172
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=268172&action=review
>> Source/WebInspectorUI/UserInterface/Views/DOMTreeOutline.css:106 >> + border-radius: 50%; > > A colored circle that fades out? Can you post a screenshot or animated GIF?
I wonder if there is a way we can give this a tooltip.
Devin Rousso
Comment 9
2016-01-07 14:04:00 PST
Comment on
attachment 268172
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=268172&action=review
>>> Source/WebInspectorUI/UserInterface/Views/DOMTreeOutline.css:106 >>> + border-radius: 50%; >> >> A colored circle that fades out? Can you post a screenshot or animated GIF? > > I wonder if there is a way we can give this a tooltip.
So I just tried modifying the code to make the indicator its own element, but doing so would require a lot of restructuring of the different "position" attributes of the elements for each DOMNodeItem (at least, it did in the way I did it). The only use-case that I can see for the tooltip (right now) is to just list the different pseudo-classes currently applied, but seeing as the indicator is only 5px by 5px, it would be very hard to actually hover it and I think that users are more likely to just select the node and look in the sidebar.
WebKit Commit Bot
Comment 10
2016-01-07 14:11:50 PST
Comment on
attachment 268172
[details]
Patch Clearing flags on attachment: 268172 Committed
r194723
: <
http://trac.webkit.org/changeset/194723
>
WebKit Commit Bot
Comment 11
2016-01-07 14:11:54 PST
All reviewed patches have been landed. Closing bug.
Nikita Vasilyev
Comment 12
2016-01-07 16:59:05 PST
(In reply to
comment #6
)
> (In reply to
comment #5
) > > I use
http://www.cockos.com/licecap/
> > Is this also the one that shows an icon when a special key is pressed so > that the viewer knows whether I hit option/command? I really like that part > about your screenshots :)
Unfortunately, LICEcap doesn't do it. When I need it, I use
http://www.araelium.com/screenflick
Screenflick doesn't do animated GIFs out of the box though, so I usually post a video when I use it. There is also
https://github.com/keycastr/keycastr
. It isn't a screen recording tool but a standalone app to show pressed shortcuts. It's neat but it doesn't show when you press or release functional keys - only when a shortcut is triggered, e.g. Cmd C.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug