Skip to content

[mediaqueries] min- or max- prefixed <mf-name> in <mf-range> #8044

@cdoublev

Description

@cdoublev

What should be the behavior when evaluating a min- or max- prefixed <mf-name> in <mf-range>?

Attempting to evaluate a min/max prefixed media feature in a boolean context is invalid and a syntax error.

Should it be in a boolean or range context? But please also note that this sentence seems to mix the concept of parsing (syntax error) and evaluating (cf. #8056), and that later in the spec (in an example in 3.2 Error Handling), min-orientation is said to be considered an unknown media feature.

Also, the expected evaluation is not clear for discrete media feature names. The above sentence seems to conflict with the sentence that comes just before:

“Discrete” type properties do not accept “min-” or “max-” prefixes. Adding such a prefix to a “discrete” type media feature simply results in an unknown feature name.

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