From ebef89927bab3465e92e0ceac4ddf39c7b3aac8a Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Wed, 10 Jul 2024 20:10:49 +0200 Subject: [PATCH] List supported combinations for color space conversion --- tinycss2/color4.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tinycss2/color4.py b/tinycss2/color4.py index fb29d1c..4c78f1a 100644 --- a/tinycss2/color4.py +++ b/tinycss2/color4.py @@ -61,7 +61,12 @@ def to(self, space): ``None`` coordinates are always transformed into ``0`` values. - Many space combinations are not supported. + Here are the supported combinations: + + - from hsl and hwb to srgb; + - from lab and lch to xyz-d50; + - from oklab and oklch to xyz-d65; + - from xyz-d50, xyz-d65, lch, oklab and oklch to lab. """ coordinates = tuple(coordinate or 0 for coordinate in self.coordinates)