Posted By

classicc on 01/24/11


css safari bug chrome webkit

Versions (?)

Pseudo-class combined with sibling selector fix for Webkit

 / Published in: CSS

In Webkit, when a general (x ~ y) or adjacent sibling selector (x + y) is combined with a dynamic pseudo class such as :hover, :focus, :checked, etc., the function breaks. This code snippet fixes it.

  1. body {-webkit-animation:bugfix infinite 1s;}
  2. @-webkit-keyframes bugfix { from{white-space:default;} to{white-space:normal;} }

Report this snippet  

You need to login to post a comment.