W3C home > Mailing lists > Public > www-style@w3.org > March 2004

Re: Proposal: useragent at-rule

From: Chris Moschini <cmoschini@myrealbox.com>
Date: Tue, 30 Mar 2004 12:03:30 -0500
To: www-style@w3.org
Message-ID: <1080666210.988675bccmoschini@myrealbox.com>

Felipe Gasper:
> UA strings are useful, but it only really makes sense to have them come *from*
> the client, not from the client to the client.

Please try the following in any browser:

alert( navigator.appName );

The User-Agent will appear, and you never asked the server anything.

> is there a great benefit to detecting the user agent in CSS over server-side,
> other than the event that a CGI environment isn't available?

How about authors who intend to write static HTML with CSS? The millions of them 
that have no clue what CGI is and will likely never learn it?

The point is to accept this problem and give it a clear syntax - the CGI kludge is
still a kludge, even if it's familiar to you.

-Chris "SoopahMan" Moschini
Received on Tuesday, 30 March 2004 12:03:47 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:12 UTC