Re: [mediaqueries] "not" is inconsistent

On Oct 8, 2014 12:18 AM, "Simon Pieters" <simonp@opera.com> wrote:
>
> On Tue, 07 Oct 2014 19:26:05 +0200, Tab Atkins Jr. <jackalmage@gmail.com>
wrote:
>
>>> Since <media-query-list> parsing is not grammar-based, what purpose does
>>> <general-enclosed> serve?
>>
>>
>> Allowing you to write things like "(min-width: 50px) or
>> (new-unknown-thing: foo)" without losing the entire expression.
>
>
> That case is covered by
>
>
> "An unknown <mf-name> or <mf-value>, or disallowed <mf-value>, must make
the entire <media-query> be replaced by not all."
>
> so it returns false. But you want it to return true if (min-width: 50px)
is true?

Yes. That was the original justification, and the entire point, for
<general-enclosed>.

The lingering MQ3 text you quoted was from a time when you couldn't apply
"not" or "or" to media features, just "and", so treating just the one
feature as false versus treating the entire media query as false was
indistinguishable.

~TJ

Received on Wednesday, 8 October 2014 07:45:23 UTC