- From: Lea Verou via GitHub <sysbot+gh@w3.org>
- Date: Tue, 10 Oct 2023 17:27:28 +0000
- To: public-css-archive@w3.org
What I proposed to @svgeesus was invert this breakdown: ``` <color> = <color-function> | <hex-color> | <color-relative-basic> | <named-color> | ... <color-relative-basic> = currentColor | <system-color> | device-cmyk() ``` Then also define a `<color-relative>` token, with prose along the lines of "Any `<color>` which includes `<color-relative-basic>` *anywhere* in its tree (note that this *could* be described as a grammar, it would just be a grammar that no human would want to ever read or edit). Then that token can be referenced as needed, from any other spec. Another advantage of this is that it maintains a coherent definition of `<color>` abstracting away only the weirdness into a separate token, whereas the current breakdown has the weirdness up front and center. -- GitHub Notification of comment by LeaVerou Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7561#issuecomment-1755915533 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 10 October 2023 17:27:30 UTC