W3C home > Mailing lists > Public > www-style@w3.org > August 2008

Re: @media and browsers conditional statments

From: Keryx Web <webmaster@keryx.se>
Date: Tue, 12 Aug 2008 21:39:32 +0200
Message-ID: <48A1E6F4.70509@keryx.se>
To: CSS 3 W3C Group <www-style@w3.org>

Simetrical skrev:
> I am far from the most experienced CSS author here.  Probably you have
> much more experience than I do.  But my mind boggles at the claim that
> we don't use browser sniffing in CSS. 

I write not from a perspective as "experienced" (I know most people on 
this list have more experience than I do), but from a perspective of 
dealing *daily* with complete newbies. I teach this stuff and 
participate daily on forums where newbies interact.

There are two things i've learned so far:

1. You can not assume good faith from everybody. Not from newbies and 
not from the same people when they progress. Once they've found a 
technique that "works" (in their view), many people will stick to it.

2. You can not assume that people read good books or the spec.

I have tried to persuade the Swedish national agency for schools to 
adopt standards based web development. The people in charge of the 
curricula did not even know what I was talking about.

The only @ua or @media (ua) rule that will get its point across would be 
something that is so verbose that it will severely challenge the lazy 
developer and very clear:

@media 
i_know_that_ua_sniffing_is_bad_but_i_really_need_it_to_workaround_a_specific_bug_so_now_i_am_targeting 
(gecko) but_only_versions_between (1.7.0) and (1.9.1) { ... }


Lars Gunther
Received on Tuesday, 12 August 2008 19:40:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:11 GMT