Skip to content

[mediaqueries-5] Turn <media-query> to not all only when produced by <media-query-list> #11289

Open
@cdoublev

Description

@cdoublev

The spec requires that an invalid <media-query> be replaced with not all. (In #7595, it was resolved to apply this at serialization time only when it is syntactically invalid.)

I have concerns about the parsing model implied by this requirement.

How is a parser supposed to recognize an input as invalid for a production, but still accept it for that production? I feel like the not all-ification should only apply when <media-query> is produced by <media-query-list>, similarly as invalid selectors are ignored when produced by <forgiving-selector-list>.

If you ever want to parse <media-query> unforgivingly in another context, you can't.

<media-query> was only produced by <media-query-list> before if() was specified. But I think could use <media-query-list> instead.

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