Suppose we have this style:
.parent .child { ... }
.parent:hover .child { ... }
Both selectors set style for child elements.
What I would like is to edit the second style.
- I click on
.parentand set:hoverstate in Chrome developer tools - Click on a
.childelement to get to child’s style but…
When I click on .child the hover on parent is gone (because it’s now set on .child).
This works in Firebug though but I need it in Chrome…
Chrome 21.0.1180.89 m
Update: Chrome now has the following new hotness:
In the Elements view, right-click the parent element and choose “Force Element State ▶ :hover”

Select the child element in the Elements view again.
Older, valid-but-obnoxious technique follows:
Tested with this JSFiddle:
:hoverin it will not go away.)Note that if you do it wrong in step 3 (if you use the mouse) you have to select a different element first before trying again.