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

Re: [csswg-drafts] [css-color-4] Clarify how color() values with fallback should serialize (#5904)

From: weinig via GitHub <sysbot+gh@w3.org>
Date: Sun, 31 Jan 2021 19:14:20 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-770433947-1612120459-sysbot+gh@w3.org>
I guess one other thing that would be good to call out is how are things like the following (taken from wpt predefined-014.html) serialized:

`color(banana 0.1 0.2 0.3, #009900)`

That is, an invalid color (invalid because it is non-dashed ident representing a color space that isn't predefined) with a valid fallback color.

Similarly, explicitly codifying how something like the following serializes would be helpful:

`color(--banana 0.1 0.2 0.3, #009900)` 

That is, an invalid color (invalid because there is no `@color-profile --banana { ... }`) with a valid fallback color as well.

(Note, Example 19 makes it clear how this would serialize if there was a specified `@color-profile --banana { ... }`, though it might be worth calling out that it would serialize the same regardless of whether the src had loaded, if that is indeed the case).

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

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Sunday, 31 January 2021 19:14:21 UTC

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