- From: Chris Lilley via GitHub <sysbot+gh@w3.org>
- Date: Thu, 15 Aug 2024 10:14:51 +0000
- To: public-css-archive@w3.org
In terms of an actual algorithm, the procedure I described in prose is consistent with the rest of the [CSS Color 4 serialization section](https://drafts.csswg.org/css-color/#serializing-color-values). It is also, by the way, consistent with (the first part of) HTML LS [serialization of a color](https://html.spec.whatwg.org/#serialisation-of-a-color): > the string is a lowercase six-digit hex value, prefixed with a "#" character (U+0023 NUMBER SIGN), with the first two digits representing the red component, the next two digits representing the green component, and the last two digits representing the blue component, the digits being [ASCII lower hex digits](https://infra.spec.whatwg.org/#ascii-lower-hex-digit). If there is really a preference for using a more algorithmic approach I can do that, but assembling a seven-character string from "`#"` plus three, two digit, lower-ASCII hex strings hardly seems to warrant it. -- GitHub Notification of comment by svgeesus Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10550#issuecomment-2291021855 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 15 August 2024 10:14:52 UTC