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

Re: Feature queries

From: Steven Simpson <ss@comp.lancs.ac.uk>
Date: Sat, 19 Dec 2009 11:15:53 +0000
Message-ID: <4B2CB5E9.1060209@comp.lancs.ac.uk>
To: www-style <www-style@w3.org>
On 13/12/09 04:51, Tab Atkins Jr. wrote:
> On Sat, Dec 12, 2009 at 8:45 AM, Steven Simpson <ss@comp.lancs.ac.uk> wrote:
>   
>> 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;
>> }
>>     
> I can't quite see how this would be used.  Could you come up with an
> example using real draft properties?
>   

Sorry, I didn't have anything concrete in mind - it was really just an
attempt to match a capability of the alternative proposed syntax:

  @supports ( display: "bc"; ) {
    body { ... }
    .sidebar { ... }
    .main { ... }
  }

Suppose that [display:"bc"] is not actually used in the contained rule
sets, but does appear elsewhere in the file.  The feature query would
then depend on something not contained in its block.  If there's a
practical example demonstrating the utility of that form, it might be
possible to express the same example using the !support-xxx syntax.

Cheers!

-- 
Received on Saturday, 19 December 2009 11:16:28 GMT

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