Webkit bug with `:hover` and multiple adjacent-sibling selectors Webkit bug with `:hover` and multiple adjacent-sibling selectors google-chrome google-chrome

Webkit bug with `:hover` and multiple adjacent-sibling selectors


you can overcome Webkit's pseudo classes + general/adjacent sibling selectors bugs by faking animation on the body element:

body { -webkit-animation: bugfix infinite 1s; }@-webkit-keyframes bugfix {   from { padding: 0; }   to { padding: 0; } }

you can check it out here: http://jsfiddle.net/jalbertbowdenii/ds2yY/1/


Easy Fix without Animations

Handled a similar issue here, where this idea of changed pseudo-classes solved it (note: nth-child(n) will always match):

div:hover + a:nth-child(n) + div


Alternatively, the fix can be applied only to the elements that are having the update issue rather than to the body element:

http://jsfiddle.net/ds2yY/12/

.force-repaint { -webkit-animation: bugfix infinite 1s; }@-webkit-keyframes bugfix {    from { fill: 0; }    to { fill: 0; }}