W3C home > Mailing lists > Public > public-css-archive@w3.org > June 2018

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

From: Emilio Cobos Álvarez via GitHub <sysbot+gh@w3.org>
Date: Sat, 16 Jun 2018 03:52:04 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-332958039-1529121123-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.3.1 : Saturday, 16 June 2018 03:52:09 UTC