Pseudo-class combined with sibling selector fix for Webkit


/ Published in: CSS
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  1. body {-webkit-animation:bugfix infinite 1s;}
  2. @-webkit-keyframes bugfix { from{white-space:default;} to{white-space:normal;} }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.