- From: Guillaume via GitHub <sysbot+gh@w3.org>
- Date: Thu, 28 Nov 2024 10:09:51 +0000
- To: public-css-archive@w3.org
cdoublev has just created a new issue for https://github.com/w3c/csswg-drafts: == [mediaqueries-5] Turn `<media-query>` to `not all` only when produced by `<media-query-list>` == The [spec](https://drafts.csswg.org/mediaqueries-5/#error-handling) 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>`](https://drafts.csswg.org/selectors-4/#parse-as-a-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()`](https://drafts.csswg.org/css-values-5/#funcdef-if) was specified. But I think could use `<media-query-list>` instead. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11289 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 28 November 2024 10:09:52 UTC