Skip to content

Commit

Permalink
[css-color-5] Serialization of specified value of color-mix
Browse files Browse the repository at this point in the history
  • Loading branch information
svgeesus committed Mar 19, 2023
1 parent 8cfdeea commit 7fd39c7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions css-color-5/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2586,6 +2586,21 @@ an implicit value of 1 (fully opaque) is the default.
Serializing color-mix()
</h3>

The serialization of the specified value of a ''color-mix()'' function
is the string "color-mix(in ",
followed by the specified <<color-space>> in all-lowercase,
followed by ", ",
followed by the first specified color,
followed by a space,
followed by the normalized first percentage,
followed by ", ",
followed by the second specified color,
followed by ")".

Following the principle of shortest serialization,
and given that the normalized percentages are serialized,
the normalized second percentage is omitted.

The serialization of the result of a ''color-mix()'' function
is a <<color>>,
as defined in [[css-color-4#serializing-color-values]].
Expand Down

0 comments on commit 7fd39c7

Please sign in to comment.