SnappySnippet icon indicating copy to clipboard operation
SnappySnippet copied to clipboard

Hover states

Open Designer023 opened this issue 10 years ago • 12 comments

Hi,

Would it be possible to add the option to capture hover states on elements? Not sure how to flag this as an enhancement but it's not a bug :-)

Cheers,

Carl

Designer023 avatar Jan 21 '14 14:01 Designer023

This is a good idea, thanks! The main issue here is that :hover is not a pseudo element but pseudo class and, therefore, I can't reuse the same solution that I used for ::before and ::after. More info here.

kdzwinel avatar Feb 03 '14 12:02 kdzwinel

If you ever find a way to have it working, that would be a good step to make Snappy Snippet even more awesome.

Romainpetit avatar Oct 02 '14 18:10 Romainpetit

The lack of :hover styles is the most important issue in my opinion. I encourage you to implement it to make SnappySnipper almost perfect :)

cprcrack avatar Nov 18 '14 10:11 cprcrack

If you have access to browser internal functionality, you may want to use the same logic as the Force element state option within the context menu within the Elements panel uses.

Sebastian

SebastianZ avatar Nov 28 '14 09:11 SebastianZ

Only possible solution that I found so far is to use chrome.debugger API to dispatch fake mouse events. That's way too complicated though.

Maybe there is something in the remote debugging protocol that I missed? I'll have to check in the DevTools code how they do that.

kdzwinel avatar Nov 28 '14 09:11 kdzwinel

I could tell you how Firebug and the Firefox DevTools toggle the element states, though that probably doesn't help you much...

Sebastian

SebastianZ avatar Nov 28 '14 10:11 SebastianZ

Have you found any solution for this enhancement?

rooltak avatar Jan 22 '15 14:01 rooltak

Note to self - forcePseudoState ( https://chromium.googlesource.com/chromium/blink/+/master/Source/devtools/protocol.json )

kdzwinel avatar Feb 19 '15 01:02 kdzwinel

This feature would be really awesome :) :+1:

reggi avatar Oct 19 '15 19:10 reggi

Any news on this ? This would be amazing!

Sgouws avatar Apr 27 '17 15:04 Sgouws

This library may be a good starting point: https://github.com/TSedlar/pseudo-styler/blob/master/pseudostyler.js

KartikSoneji avatar Jan 17 '20 21:01 KartikSoneji

+1 on this great feature request!

I originally installed this chrome extension especially for capturing cool buttons' styling as a starting point, so obviously, without the hover effect being captured by this extension, I unfortunately had to uninstall it (...even though it's the best extension in general - apart from that - that I've found so far for capturing html/css).

For instance, extension SnipCSS does extract the hover effect, however the extension UX is not as great as SnappySnippet, and the extracted code seems to be missing a few css items since the extracted visual is not always an exact copy of what was seen on the source website, something that is obviously critical to an extension like this, and something that SnappySnippet seems to be much much better at this in terms of exact copy. Just missing the :hover effect, at least for me to download again.

Nice work though. Thanks

Frank-D avatar Apr 05 '23 18:04 Frank-D