Tag Archive for 'safari'

Weirdness with different browsers: Safari, and the rest of the world

A couple of hours ago, I received an email from a reader of Planet Atheism tell me that it didn’t show up correctly in Safari: fonts were huge.

(Incidentally, PA is a month old today, and, apparently, had that problem since the beginning. Not too many Safari users out there, it seems… or, else, they’re shy! :) )

Well, I knew it displayed well in Firefox, IE and Opera, so I tried Konqueror, which is supposedly “closer” to Safari (which was originally based on KHTML). No problem there, either.

As I don’t have a Mac, I confirmed with another Mac user (thanks, Ricardo!) that there really was a problem (not that I doubted the guy, but it might be something only on his system), and, so, I started looking. Fire up the W3 CSS validator, and… it complained about this line:

font-size: 62,5%;

The problem, which you may already have spotted, is the comma: it should be a period (or should I say “dot”?) instead. My guess (which was correct) was that Safari was reading that as “625%”. So I changed the comma to a period, and… everything became smaller in Firefox! :shock:

Yes, Firefox (and every other browser except Safari, apparently) completely ignored that line because of the comma. Safari, on the other and, interpreted it without the comma.

Highly illogical, if you ask me… if you want to “do your best” to interpret code, the comma should be replaced by a dot, not completely removed. :) But it’s funny that the other browsers were ignoring that line, as well. I have since commented it out, as I had gotten used to a bigger font on PA. :)

Incidentally, every single Moonmoon installation probably has this bug. I’ll try to report it to the author.




Creative Commons Attribution-NonCommercial-NoDerivs 2.5 Portugal
Creative Commons Attribution-NonCommercial-NoDerivs 2.5 Portugal