D
David Mark
I've discussed this issue recently with various developers and found
that it has not yet become common knowledge.
The good practice of using conditional comments to include CSS
adjustments for older IE versions has been broken by MS in IE8. The
default Compatibility View sets the "document mode" (rendering mode) to
IE7 standards mode, but leaves the "browser mode" as IE8. The browser
mode determines (among other things) which conditional comments will be
interpreted (and more to the point, which will be ignored).
The end result is that if the user inadvertently clicks the
Compatibility View button (prominently featured right next to the
refresh button), they get IE7-ish rendering without the benefit of IE <
8 CSS adjustments. How MS thought that would be a good default behavior
for this button is beyond my comprehension.
A way around this (at least for styles that are relevant only for
dynamic content) can be found at the top of the source for the My
Library Examples page.
http://www.cinsoft.net/mylib-examples.html
It's best to design around this when possible, but it is not possible
for a test page such as the above. For most sites, a
non-version-specific IE-only style sheet is all that should be required
(and normally shouldn't contain more than proprietary IE rules).
that it has not yet become common knowledge.
The good practice of using conditional comments to include CSS
adjustments for older IE versions has been broken by MS in IE8. The
default Compatibility View sets the "document mode" (rendering mode) to
IE7 standards mode, but leaves the "browser mode" as IE8. The browser
mode determines (among other things) which conditional comments will be
interpreted (and more to the point, which will be ignored).
The end result is that if the user inadvertently clicks the
Compatibility View button (prominently featured right next to the
refresh button), they get IE7-ish rendering without the benefit of IE <
8 CSS adjustments. How MS thought that would be a good default behavior
for this button is beyond my comprehension.
A way around this (at least for styles that are relevant only for
dynamic content) can be found at the top of the source for the My
Library Examples page.
http://www.cinsoft.net/mylib-examples.html
It's best to design around this when possible, but it is not possible
for a test page such as the above. For most sites, a
non-version-specific IE-only style sheet is all that should be required
(and normally shouldn't contain more than proprietary IE rules).