W3C home > Mailing lists > Public > www-style@w3.org > April 2011

Re: [css3-cascade] browser specific CSS

From: Christoph Päper <christoph.paeper@crissov.de>
Date: Fri, 1 Apr 2011 10:28:11 +0200
Message-Id: <035D09C3-2D2B-4DEE-913F-147F758901E3@crissov.de>
To: W3C style mailing list <www-style@w3.org>
Tab Atkins Jr.:
> 
> The one area where we *do* want to do something, imo, is in making CSS capable of doing feature-testing.  This has been proposed in the group before, via an @supports rule.

I liked the ‘!required’ solution:

  foo {
    bar: plain and simple; /* fallback */
    bar: bells and whistles !required;
    baz: only works well with second bar !required;
  }

This hardly works across rulesets and only provides one level of fallback, but it is good enough for many use cases.
Received on Friday, 1 April 2011 08:28:45 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:39 GMT