I love the Paul Irish CSS classes for IE as an alternative to conditional stylesheets. IE9 not yet all that and a bag of chips. I have at least one IE7-8 CSS issue on a site that is happening in IE9 (and not any non-IE browsers). I need an IE9 (lt-ie10?) class, too. Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | zen.ie9_.1780324.patch | 657 bytes | rudy.barrett |
Comments
Comment #1
echoz commentedI believe this is a rare edge case need so I'd like to suggest you could add that as custom for your project, or perhaps we can help find a css fix. Reopen as a support request here or in the Post Installation forum if you still need help.
Comment #2
hanpersand commentedI altered the markup and handled it differently and resolved the problem that way. Thanks for your response!
Comment #3
rudy.barrett commentedIn case anyone needs it, I have created a patch to add an "ie9" class on the case of [if IE 9] to the Zen theme. I think this should be a part of the Zen templates because if even one case arises where you need an ie9 specific style (which does still happen) this class will come in very handy.
Thanks!
Comment #4
chrisschaub commented+1 for #3, very useful. Also, makes the IE9 rule useful, otherwise remove it?
Comment #5
hanpersand commentedI would like to see this get added to Zen if possible. IE9 doesn't support some key CSS3 properties that are now otherwise ubiquitous like gradients and text shadows. Though there's the proprietary MS filter for gradients, PIE, and other solutions, personally I don't like to use them if I can avoid it. Sometimes I like to tweak a graceful degradation in IE7-8 to make it a little more user friendly, especially if a site has a good number of IE users.
In any case, thank you @rudongg!
Comment #6
akalata commented+1 for this as well. I don't agree that this is an edge case. Reopening as a feature request so it pops up on a maintaner's radar.
Comment #7
susheel_c commentedWould definitely like to see this in Zen. I'm currently wrangling with a CSS issue that displays on IE 10 right down to IE 6, but does not appear with any other browser. Perhaps an "ie" class?
Comment #8
mattsmith3 commented+1 for #3- solved some problems for me too.
Comment #9
rootwork+1 on adding an IE9 class. I also have a site that needs some things targeted directly to IE9. It seems like a pretty minimal thing to add to support that kind of work, even if it doesn't happen with every site.
On the patch from #3:
Shouldn't the last line be modified to
gt IE 9, notgte IE 9? It seems like the way it is, it will result in two <html> elements for IE9, since it would match both "if IE 9" and "if gte [greater than or equal to] IE 9."Comment #10
johnalbinI've never needed an IE9 or IE10 class. And if you are worried about missing CSS3 support, you are better off using Modernizr since it allows you to target the actual missing CSS3 property instead of browser sniffing.