Skip to content

[mediaqueries-5] Parsing strategy for range syntax #8998

@tbjgolden

Description

@tbjgolden

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions