- From: Psychpsyo via GitHub <sysbot+gh@w3.org>
- Date: Thu, 21 Nov 2024 08:59:14 +0000
- To: public-css-archive@w3.org
> An invalid `<media-query>` is then replaced by `not all`, as defined in [ยง 3.2. Error Handling](https://drafts.csswg.org/mediaqueries-5/#error-handling). So `all, ` becomes `all, not all`. Ah, but passing `all,` instead of `all, ` (notice the whitespace) into `parse a comma-separated list of component values` would return a list with just `all` in it. Also, in the section on error handling it says that "a grammar mismatch does not wipe out an entire [media query list](https://drafts.csswg.org/mediaqueries-5/#media-query-list), just the problematic [media query](https://drafts.csswg.org/mediaqueries-5/#media-query)" so even if passing `all, `, the first media query in that still works. So the trailing comma is still syntactically allowed, while not in the railroad diagram. -- GitHub Notification of comment by Psychpsyo Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11254#issuecomment-2490429882 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 21 November 2024 08:59:14 UTC