Skip to content

Navigation Menu

Sign in
Appearance settings
Sign up
Appearance settings

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

Copy link
Copy link

Description

@emilio
Issue body actions

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.

Reactions are currently unavailable

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.