Skip to content

Commit 670366f

Browse files
LeaVeroufantasai
andcommitted
[css-color-6] Rewrite serialization section for contrast-color()
Co-Authored-By: fantasai <[email protected]>
1 parent b860b74 commit 670366f

File tree

1 file changed

+8
-67
lines changed

1 file changed

+8
-67
lines changed

css-color-6/Overview.bs

Lines changed: 8 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,6 @@ If no target contrast is specified
283283

284284

285285

286-
287-
288286
421380

422-
The minimum precision for round-tripping
423-
is the same as that specified in
424-
[[css-color-4#serializing-color-values]].
425-
426-
427-
The winner of this contrast choice
428-
contrast-color(wheat tbd-bg wcag2, olive, sienna, maroon)
429-
is maroon,
430-
so the result is serialized as
431-
432-
"rgb(128 0 0)".
433-
434-
While the winner of
435-
contrast-color(wheat tbd-bg wcag2, color(prophoto-rgb 0.4 0.4 0.2), color(display-p3 0.45 0.08 0.05))
436-
is color(display-p3 0.45 0.08 0.05),
437-
so the result is serialized as
438-
439-
"color(display-p3 0.45 0.08 0.05)".
440-
381+
441382

442383
commit comments
Comments
 (0)