W3C home > Mailing lists > Public > www-style@w3.org > December 2009

Re: Feature queries

From: Steven Simpson <ss@comp.lancs.ac.uk>
Date: Sat, 12 Dec 2009 14:45:19 +0000
Message-ID: <4B23AC7F.80703@comp.lancs.ac.uk>
To: www-style <www-style@w3.org>
On 09/12/09 18:42, Tab Atkins Jr. wrote:
> On Wed, Dec 9, 2009 at 1:48 AM, fantasai <fantasai.lists@inkedblade.net> wrote:
>   
@supports {
>>  tag {
>>    background: white;
>>    color: gray;
>>  }
>>
>>  tag {
>>    color: white;
>>    text-shadow: black 0 0 4px !support;
>>  }
>>     
}

> This seems like a much worse idea for backward-compat reasons.  Legacy
> clients that don't understand !support will blithely apply the
> color:white and just ignore the next line like normal.
>   

Any better if the scope is @-marked explicitly (as shown above)?  The
whole thing will be skipped if not recognised (right?), and it allows
other rules that don't contain !support to be dropped.

@supports could also be expressed as a media query feature then, as
there's no need to incorporate any extra syntax for testing for support
of specific values of a property:

@media (supports) {
  x {
    display: inline-block !support;
  }

  /* other stuff, disabled if inline-block is not supported */
}

Taking a step further, tag to support referencing from other parts of
the document:

@media (supports-funkiness) {
  ...
}

x {
  x: y !support-funkiness;
  x: z !support-stupidity;
}


-- 
Received on Saturday, 12 December 2009 14:46:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 03:47:12 GMT