- From: Steven Simpson <ss@comp.lancs.ac.uk>
- Date: Sat, 12 Dec 2009 14:45:19 +0000
- 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 UTC