Re: Feature queries

Hello,

> This needs 'else' and 'else if' constructs.  How about
> 
> @if supports( ... ) {
>    ruleset
> }
> @elif supports( ... ) {
>    ruleset
> }
> @else {
>    ruleset
> }

If media-query like operators were allowed, we need no @else:
  @if supports( display: run-in; ) { ... }
  @if supports( not(display: run-in); ) {...}

I think few people would use @else anyway, but instead use cascading:
  div {...} /* default case */
  @if supports( foo: bar; ) { div {...} /* special case*/ }



-- 
pascal

Received on Wednesday, 9 December 2009 20:49:34 UTC