Re:Pure CSS Clickable Events Without :target
by firefoxman1 on Saturday March 17, 2012 @06:30PM
(#3718418)
This works really well on touchscreens. A common problem with pure :hover dropdowns is that they only display for like a half second when you touch with your finger. I would have :hover AND :active do the exact same behavior to make this cross-platform.
[ Parent
| on HN ]
Re:Pure CSS Clickable Events Without :target
by tommi on Saturday March 17, 2012 @06:37PM
(#3718439)
On the other hand it doesn't work at all with keyboard.
Re:Pure CSS Clickable Events Without :target
by firefoxman1 on Saturday March 17, 2012 @07:29PM
(#3718536)
True, you would need :focus, but then it wouldn't hide on mouseout.