Skip to content

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

@emilio

Description

@emilio

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions