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:

<script>
alert( navigator.appName );
</script>

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
http://hiveminds.info/
http://soopahman.com/
Received on Tuesday, 30 March 2004 12:03:47 GMT

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