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

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