Open cdoublev opened 2 years ago
Hm, yes, that looks like an oversight. (min-height < 500px)
should definitely be an error.
Do you mean that it should be a parse error? Chrome seems to evaluate it as unknown
(but not FF).
matchMedia('(min-width) or (min-width < 1px) or (color)')
Also, it would make a difference between known vs. unknown media feature names: the latter are defined as evaluating to unknown
.
An unknown
<mf-name>
or<mf-value>
, or a feature value which does not matches the value syntax for that media feature, results in the value “unknown”.
In my opinion, both sentences should be removed, only the above definition should stay.
What should be the behavior when evaluating a
min-
ormax-
prefixed<mf-name>
in<mf-range>
?Should it be in a boolean or range context? But please also note that this sentence seems to mix the concept of parsing (syntax error) and evaluating (cf. https://github.com/w3c/csswg-drafts/issues/8056), and that later in the spec (in an example in 3.2 Error Handling),
min-orientation
is said to be considered an unknown media feature.Also, the expected evaluation is not clear for discrete media feature names. The above sentence seems to conflict with the sentence that comes just before: