Re: Feature queries

fantasai wrote:
> bz asked me to post a proposal on feature queries: syntax for allowing
> authors to apply CSS rules based on whether a particular CSS feature
> is supported.
> 
> The key here is to check against a property+value pair, not a general
> feature class. The UA already makes a support claim for property+value
> pairs when it chooses to parse and cascade them.
> ...
> The second is a !important-like syntax: all declarations with !supported
> must be supported for the style rule to take effect. This could be useful
> for more localized constructs, like changing text color depending on
> text-shadow support.
> 
>   tag {
>     background: white;
>     color: gray;
>   }
> 
>   tag {
>     color: white;
>     text-shadow: black 0 0 4px !support;
>   }
> 
> (This second bit is mostly keyed off my earlier proposal for !required,
> which would also take into account the results of cascading, and tie
> the effect of the no !required rules into the cascading success of the
> !required rules.)

Sorry, s/my/an/. Meant to dig up the proposal before sending. Here's
the original, afaict.

   http://lists.w3.org/Archives/Public/www-style/2004Dec/0084.html

~fantasai

Received on Wednesday, 9 December 2009 18:02:46 UTC