- From: Psychpsyo via GitHub <sysbot+gh@w3.org>
- Date: Thu, 21 Nov 2024 02:31:03 +0000
- To: public-css-archive@w3.org
Psychpsyo has just created a new issue for https://github.com/w3c/csswg-drafts: == [mediaqueries] Spec has conflicting info on whether or not `<media-query-list>` allows trailing commas == The railroad diagram in [2.1. Combining Media Queries](https://www.w3.org/TR/mediaqueries-4/#mq-list) does not allow a trailing comma: ![image](https://github.com/user-attachments/assets/e88edca1-e74c-4870-9d41-a11aa82c8448) But later on, in [3. Syntax](https://www.w3.org/TR/mediaqueries-4/#mq-syntax), it says "To parse a `<media-query-list>` production, [parse a comma-separated list of component values](https://www.w3.org/TR/css-syntax-3/#parse-a-comma-separated-list-of-component-values)". And parsing a comma-separated list of component values does allow a trailing comma. I'd assume the trailing comma is allowed, especially since the railroad diagram is called out as "informal", but from what I can tell, it is still in a normative part of the spec. (I haven't yet checked how browsers actually implement this, so that guess is based purely on the spec.) Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11254 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 02:31:03 UTC