W3C home > Mailing lists > Public > www-style@w3.org > March 2015

[mediaqueries] @media not (unsupported-media-feature) v.s. @media not (unsupported + syntax)

From: Simon Sapin <simon.sapin@exyr.org>
Date: Thu, 26 Mar 2015 16:54:13 +0100
Message-ID: <55142BA5.4090607@exyr.org>
To: www-style list <www-style@w3.org>
MQ4 adds a <general-enclosed> term to its grammar that accepts almost 
anything and evaluates to false. This is to support future extensions.

This means that a query like `not (unsupported + syntax)` evaluates to true.

However, something like `not (unsupported-media-feature)` with the 
normal <media-feature> syntax evaluates to false:

> An unknown <mf-name> or <mf-value>, or disallowed <mf-value>, must
> make the entire <media-query> be replaced by not all.

This is inconsistent. Should one of these two cases be changed to match 
the other?

Simon Sapin
Received on Thursday, 26 March 2015 15:54:40 UTC

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