What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 150 Stack Exchange communities.

I realised that Firefox gives the following warning messages every time I surf the trilogy sites.

Firefox error console screeny for SuperUser:

alt text

Firefox error console screeny for StackOverflow, ServerFault and Meta (exactly the same for these sites):

alt text

I observed the same error console outputs from 2 different PCs on different ISPs. Maybe those warnings are not so important but I just wanted to inform the developers...

share|improve this question
There's some humor in an error message that says "Expected 'important' but found 'ie7'." – Grace Note Apr 16 '10 at 13:59
There is actually width:650px!ie7;padding-bottom:20px!ie7; in the css file. wondering thats a trick to IE7 but ignore to other browsers? – YOU Apr 16 '10 at 14:11
also found pre{max-height:none\9;} , I think \9 doing nothing though. – YOU Apr 16 '10 at 14:17
@S.Mark: we can't know until we test with and without it on IE5-9, Opera 9.x-10.x, Chrome 2-5, Safari 2-4, Firefox 2.x-3.7, Konqueror, Epiphany and links. Who knows what that is fixing. Or may be it's just a typo. – perbert Apr 16 '10 at 14:58
This reminds me of something. – perbert Apr 16 '10 at 16:10

1 Answer 1

up vote 3 down vote accepted

They are using CSS tricks to target different browsers.

Bad Jeff, bad!
* Rubs Jeff nose in the CSS *
Use conditional comments instead!

They are generally harmless, but are more work than they are worth.

share|improve this answer
Conditional Comment stylesheets are irritating to change, though :( – Phoshi Apr 16 '10 at 15:25
@Phoshi: but is better than CSS tricks misbehaving on different browsers. – perbert Apr 16 '10 at 16:09
@json: I wouldn't say throwing up an error the vast majority of users will never see is particularly misbehaving, but otherwise I agree. IE is irritating in general :( – Phoshi Apr 16 '10 at 17:41
@Phoshi: CSS tricks make future proofing harder. If I visit the site with New Browser 3.11™, it might misbehave in a really bad way, while conditional comments allow for a cleaner action. Of course, if you are targeting Opera or Webkit and not Firefox (or any other combination), you might be more restricted in your choices. – perbert Apr 16 '10 at 17:55
conditional comments require changes to the HTML which is lame. I am open to conditional CSS but such a thing does not exist. Sadly. – Jeff Atwood Apr 16 '10 at 18:27
@Jeff: you could also sniff the browser to have conditional CSS, but that would be probably even more evil. You might be able to reduce footprint with that though. – perbert Apr 16 '10 at 18:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .