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
2010-06-15 00:37:46
Thanks Aaron, but it would also involve Javascript, plus I would like to keep my style sheets "hack" free.
Nutmeg
2010-06-15 00:45:52
A:
Not to my knowledge. As far as I know, conditional comments are an Internet Explorer-only feature.
AgentConundrum
2010-06-15 00:38:18
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
2010-06-15 00:44:13
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
2010-06-15 00:50:41
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
2010-06-15 00:53:47
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
2010-06-15 01:00:36
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
2010-06-15 12:48:02
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
2010-07-02 06:13:37