Previous Message
Next Message

Re: [css-d] Proper Use of @import

Sent by Andrew Clover on 31 January 2002 11:11

Randal Rust [EMAIL-REMOVED]> wrote:

> What I'm thinking is this:  Why doesn't the W3C add another rule, called
> @browser?  Then you could set browser-specific style sheets without
> Javascript.

It's an interesting idea, and it might work for a little while, but I'm
sure it would in the end succumb to the same fate as all explicit user-agent
based browser sniffing:

  1. developers start to misuse it to *include* known-good browsers for
     advanced functionality, instead of *excluding* known-bad browsers
     from standard functionality;
  2. users are unnecessarily excluded from functionality that their
     browsers would be perfectly capable of handling;
  3. browser makers see this and make their browsers lie about who they
     are in order to get access to the advanced functionality;
  4. lather, rinse, repeat;
  5. the browser ends up pretending to be another browser pretending to
     be yet another browser, the code to detect all this is insanely
     complex and unreliable, and the whole thing becomes basically useless.

It's a shame, but this seems to be the nature of the marketplace.

Andrew Clover
Previous Message
Next Message

Message thread: