From be30e75dc2dd538f5cdad5a55407d4b99920554c Mon Sep 17 00:00:00 2001 From: Chris Lilley Date: Fri, 12 Apr 2024 16:10:07 -0400 Subject: [PATCH] [css-color-5] Separate out the conceptual aspects of RCS from the syntactic details. Clarify which color space the channel keywords relate to, #10191 --- css-color-5/Overview.bs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/css-color-5/Overview.bs b/css-color-5/Overview.bs index 24882b4a714..2cd6376c112 100644 --- a/css-color-5/Overview.bs +++ b/css-color-5/Overview.bs @@ -796,6 +796,10 @@ which is rgb(52.446% 45.821% 62.953%) Relative Color Syntax +

+ Introduction to Relative Color Syntax +

+ In previous levels of this specification, the color functions could only specify colors in an absolute manner, by directly specifying all of the color channels. @@ -811,6 +815,15 @@ can either be directly specified, or taken from the origin color (and possibly modified with [=math functions=]). +The origin color and the relative color need not use the same color function. + +All operations take part in the +[=color space=] of the [=relative color=] function; +the [=origin color=] is converted to that color space, +and [=channel keywords=] +refer to the color space of the relative color, +not the [=origin color=]. + relative-currentcolor-a98rgb-01.html @@ -840,7 +853,6 @@ but they all follow a common structure: * An [=origin color=] can be specified with a ''from <>'' value at the start of the function. This includes the optional alpha channel, if specified. -* The origin color and the relative color need not use the same color function. * If an [=origin color=] is specified, the remaining arguments can either be specified directly, as normal, or be specified as a channel keyword