views:

86

answers:

4

Are there specific Conditional Comments available for older versions of Firefox? (eg 3.0)

+3  A: 

No, they are only supported by IE.

There are CSS hacks though. See: http://perishablepress.com/press/2009/06/28/css-hacks-for-different-versions-of-firefox/

Aaron Harun
Thanks Aaron, but it would also involve Javascript, plus I would like to keep my style sheets "hack" free.
Nutmeg
A: 

Not to my knowledge. As far as I know, conditional comments are an Internet Explorer-only feature.

QuirksMode.org agrees.

AgentConundrum
Thanks, maybe a little more specific:I am trying to create a solid fallback for @font-face by initiating Cufón for older browsers. Conditional comments came to mind but perhaps there is another route?
Nutmeg
Can't you do that with font-family? Put your font-face first on the list, then your fallbacks in sequence after that. If the browser can handle font-face, it'll use that. If it can't handle font-face, it'll default to Cufón (and if the user doesn't have Cufón, it'll default to the next in line, etc.)
AgentConundrum
Cufón is a text-replacement engine with the Canvas element. An ugly solution if there ever was one. http://cufon.shoqolate.com/generate/
Aaron Harun
Ok, I didn't check so I was assuming Cufón was a font. This complicates things a bit. I suppose your best option might be to write some javascript to determine what browser/version combo the user is using, and go from there. Not the most elegant solution, but not the ugliest I've ever seen either.
AgentConundrum
A: 

Ill answer this:

I am trying to create a solid fallback for @font-face by initiating Cufón for older browsers. Conditional comments came to mind but perhaps there is another route?

This is exactly what you want. Now you just need to insert it inside an if which inject the cufón script tags.

(click on the checkmark to accept the answer)

Knu
A: 

Received an email from Faruk Ates the developer of [Modernizr][1]

[1]: http://www.modernizr.com/ confirming that it will do the trick.... and more:-)

Nutmeg