[csswg-drafts] [mediaqueries-4][mediaqueries-5] Is the `<mf-range>` "swapping value and name" syntax really useful?

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

== [mediaqueries-4][mediaqueries-5] Is the `<mf-range>` "swapping value and name" syntax really useful? ==
The `<mf-range>` syntax allows:

```
<mf-range> = <mf-name> [ '<' | '>' ]? '='? <mf-value>
           | <mf-value> [ '<' | '>' ]? '='? <mf-name>
```

That is, both `500px > width` and `width > 500px` is valid.

This is nice, but given `<mf-value>` can also be an `<ident>` it causes ambiguity, and complexity / slowness while parsing.

Given you can easily use negations, I think it's not terribly useful, but if people feel very strongly about it the spec should define how to resolve the syntax ambiguity.

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

Received on Saturday, 16 June 2018 03:52:09 UTC