W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2021

Re: [csswg-drafts] [css-color-4] Example 20 has an erroneous % in the alpha serialization output (#5903)

From: Chris Lilley via GitHub <sysbot+gh@w3.org>
Date: Thu, 28 Jan 2021 00:30:38 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-768669905-1611793838-sysbot+gh@w3.org>
Thanks again for the detailed feedback! You are correct, there should not be a percentage.

This is [explicitly stated](https://drafts.csswg.org/css-color-4/#serializing-alpha-values)

> If the alpha is any other value than 1, it is explicitly included in the serialization, as a <number>, not a <percentage>. The value is expressed in base ten, with the "." character as decimal separator. The leading zero must not be omitted. Trailing zeroes must be omitted.

So the example you cited is clearly incorrect.

GitHub Notification of comment by svgeesus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5903#issuecomment-768669905 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 28 January 2021 00:30:40 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:25 UTC