Skip to content

[css-values-5] Does media-progress() really want the entire <media-feature> production for its progress value? #10966

@weinig

Description

@weinig

I am trying to wrap my head around the media-progress() function and am having trouble understanding exactly what kind of <media-feature>s should be supported as the progress value.

The stated production, <media-feature>, is defined to allow a whole host of syntaxes:

<media-feature> = ( [ <mf-plain> | <mf-boolean> | <mf-range> ] )

meaning it can match things like width > 0, orientation: portrait, etc.

The spec does state: "The specified media query must be a valid “range” type query", but I can't figure out how to map that to a spec concept.

From the tests in WPT, which use only width and height as features, making me think that perhaps the grammar should be changed to use <mf-name> rather than <media-feature>.

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