Re: [css3-mediaqueries] not (media-feature)

On 10/23/12 11:07 AM, Kenneth Rohde Christiansen wrote:
> Is "not (media-feature)" forbidden per syntax?

Yes.  http://dev.w3.org/csswg/css3-mediaqueries/#syntax says:

media_query
  : [ONLY | NOT]? S* media_type S* [ AND S* expression ]*
  | expression [ AND S* expression ]*
  ;

So "not" is only usable with a media type.  e.g.:

   not all and (monochrome)

> If so, what is the reason for that?

This I don't know offhand.

-Boris

Received on Tuesday, 23 October 2012 15:18:43 UTC