Re: Feature queries

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 UTC