Skip to content

Commit 7fd39c7

Browse files
committed
[css-color-5] Serialization of specified value of color-mix
1 parent 8cfdeea commit 7fd39c7

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

css-color-5/Overview.bs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2586,6 +2586,21 @@ an implicit value of 1 (fully opaque) is the default.
25862586
Serializing color-mix()
25872587
</h3>
25882588

2589+
The serialization of the specified value of a ''color-mix()'' function
2590+
is the string "color-mix(in ",
2591+
followed by the specified <<color-space>> in all-lowercase,
2592+
followed by ", ",
2593+
followed by the first specified color,
2594+
followed by a space,
2595+
followed by the normalized first percentage,
2596+
followed by ", ",
2597+
followed by the second specified color,
2598+
followed by ")".
2599+
2600+
Following the principle of shortest serialization,
2601+
and given that the normalized percentages are serialized,
2602+
the normalized second percentage is omitted.
2603+
25892604
The serialization of the result of a ''color-mix()'' function
25902605
is a <<color>>,
25912606
as defined in [[css-color-4#serializing-color-values]].

0 commit comments

Comments
 (0)