5

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

4 Answers 4

11

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/

Sign up to request clarification or add additional context in comments.

1 Comment

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

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

QuirksMode.org agrees.

4 Comments

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?
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.)
Cufón is a text-replacement engine with the Canvas element. An ugly solution if there ever was one. cufon.shoqolate.com/generate
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.
0

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?

You just have to inject the cufón script tags conditionally.

Comments

-1

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:-)

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.