W3C home > Mailing lists > Public > www-style@w3.org > October 2012

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

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 23 Oct 2012 11:18:06 -0400
Message-ID: <5086B52E.2060208@mit.edu>
To: www-style@w3.org
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:01 GMT