W3C home > Mailing lists > Public > www-style@w3.org > November 2013

[mediaqueries] Intentional that "not" is only usable in front of a media type?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 12 Nov 2013 00:40:37 -0800
Message-ID: <CAAWBYDC_PSDwA+Gq4mkHVumfw60_8VbECEX_A+9pjELcFcbEUQ@mail.gmail.com>
To: www-style list <www-style@w3.org>
According to the grammar in Media Queries, the "not" keyword is only
allowed in front of a media type.  You can't put it in front of a set
of media features, like "not (color)".

However, as far as I can tell, using a "not" negates the entire query,
not just the type.  That is, "not screen and (color)" means "not a
color screen", rather than "not a screen, but has color".

Am I right in interpreting this?  If not, I need to revise the spec to
make this more clear.

If I am, does anyone have any clue why this grammar restriction
exists?  It seems more reasonable to let it apply to media features
without a media type as well.

Received on Tuesday, 12 November 2013 08:41:23 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:36 UTC