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

Re: @media and browsers conditional statments

From: Jens Meiert <jens@meiert.com>
Date: Tue, 5 Aug 2008 09:36:57 +0200
Message-ID: <9fbcac550808050036p3923785bl3dd727180253ef3b@mail.gmail.com>
To: www-style@w3.org
On Mon, Aug 4, 2008 at 12:08 AM, Francois Remy
<fremycompany_pub@yahoo.fr> wrote:
>
> What about a @media browser-base filtering of CSS ?
>
>     @media (gecko) {
>         /* This will be available for gecko-based browsers only */
>     }

On Mon, Aug 4, 2008 at 12:35 AM, Benjamin Hawkes-Lewis
<bhawkeslewis@googlemail.com> wrote:
>
> I suggest reading the most recent discussion of a similar
> proposal (@ua):
>
> http://preview.tinyurl.com/5vuhpe

At least this is more maintainable than e.g. "Conditional Comments" …
However, "user agent sniffing" means a maintenance problem in its own,
and history already shows that it never works reliably [1]. Also, I
wonder if these approaches are not standards-adverse in principle.


[1] http://en.wikipedia.org/wiki/User_agent#User_agent_spoofing

-- 
Jens Meiert
http://meiert.com/en/
Received on Tuesday, 5 August 2008 07:37:33 GMT

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