W3C home > Mailing lists > Public > www-style@w3.org > November 2007

Re: Proposal of @ua

From: Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com>
Date: Fri, 23 Nov 2007 08:52:34 +0000
Message-ID: <474694D2.3010306@googlemail.com>
To: David Woolley <forums@david-woolley.me.uk>
CC: "www-style@w3.org" <www-style@w3.org>

Benjamin Hawkes-Lewis wrote:

> Indeed, but note that's true for JS too. For example, you can detect 
> getElementById but you can't be sure it won't get elements by NAME too 
> (as the JScript implementation does). But JS feature detection is still 
> generally preferable to browser detection. But perhaps one would need 
> both to work around known broken implementations.

Perhaps one could add engine detection to the @feature syntax to 
encourage authors to feature detect before they engine-detect, rather 
than having a separate @ua statement, like so:

@feature (display: inline-block;) with engine(Gecko, <= 1.9) {
/* Gecko's known broken implementation of inline block. */

Benjamin Hawkes-Lewis
Received on Friday, 23 November 2007 08:52:46 UTC

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