[csswg-drafts] [mediaqueries-5] Parsing strategy for range syntax (#8998)

tbjgolden has just created a new issue for https://github.com/w3c/csswg-drafts:

== [mediaqueries-5] Parsing strategy for range syntax ==
When parsing a media query for range syntax, I was wondering about how this expression would be expected to be parsed.

```
(infinite = resolution)
```

In particular - resolution here is the feature but the parser cannot know that as it sees ident, =, ident and could match either of the top two productions in https://www.w3.org/TR/mediaqueries-5/#typedef-mf-range.

What strategy should a parser use to determine that infinite is not the feature?

A simple check for `infinite` on the first value? And if so, what happens with:

```
(infinite = infinite)
```


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8998 using your GitHub account


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

Received on Thursday, 22 June 2023 08:32:18 UTC