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

Re: Feature queries

From: fantasai <fantasai.lists@inkedblade.net>
Date: Wed, 09 Dec 2009 10:02:03 -0800
Message-ID: <4B1FE61B.4070807@inkedblade.net>
To: www-style@w3.org
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.


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

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