IE7 - Get rid of your hacks!
After reading a recent post to the IE7 blog, Microsoft is putting the word out to everyone that they should delete hacks from their stylesheets, as updates have been made to their latest browser which fix these bugs.
We’re starting to see the first round of sites and pages breaking due to the CSS fixes we have made. We would like to ask your help in cleaning up existing CSS hacks in your pages for IE7. It is has been our policy since IE6 that under quirks doctype we will not make any behavioral changes so that existing pages will continue to render unmodified, but under the strict doctype we want to change behavior to be as compliant as possible with the web standards. For IE7, we introduced new CSS functionality (see Chris’ blog post for the full list) and cleaned up our parser bugs. This leads now to several CSS hacks failing. If you are using IE7 (you are MSDN subscriber or received a copy at the PDC) you may notice major sites breaking due to the use of CSS hacks and the strict doctype.
Here is a list of common CSS hacks to look out for (please also consider their variations):
- html > body - http://css-discuss.incutio.com/?page=ChildHack
- * html - http://css-discuss.incutio.com/?page=StarHtmlHack
- head:first-child + body - http://centricle.com/ref/css/filters/tests/owen/
- body > element - http://css-discuss.incutio.com/?page=ChildHack
Comments(2)