Re: [csswg-drafts] [mediaqueries] `min-` or `max-` prefixed `<mf-name>` in `<mf-range>` (#8044)

Do you mean that it should be a parse error? Chrome seems to evaluate it as `unknown` (but not FF).

```js
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.

-- 
GitHub Notification of comment by cdoublev
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8044#issuecomment-1312365230 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 12 November 2022 04:58:37 UTC