lojjic / PIE

A behavior for Internet Explorer allowing it to recognize and render various CSS3 box decoration properties
http://css3pie.com
Other
2.79k stars 235 forks source link

PIE causing hover effect delay in IE8 #294

Open oalberdi opened 10 years ago

oalberdi commented 10 years ago

Version of PIE 1.0.0 PIE.htc is in the root of our website and referenced from css as behavior: url(/PIE.htc);

It all works fine on every browser except on IE8, when you put your mouse onto the element the hover state happens with delay (the background color changes with delay). Example of the code and css used: http://jsfiddle.net/hLY7V/

lojjic commented 10 years ago

The delay, unfortunately, is necessary. This is because PIE has to listen to mouseover/out events, and IE fires those events before the :hover styles from the CSS are applied to the element.

PIE does add a .pie_hover class to the elements on hover as well, which if you use that in your CSS should allow the hover styles to be applied sooner.