Skip to content

Commit be30e75

Browse files
committed
[css-color-5] Separate out the conceptual aspects of RCS from the syntactic details. Clarify which color space the channel keywords relate to, #10191
1 parent 210ec19 commit be30e75

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

css-color-5/Overview.bs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,10 @@ which is rgb(52.446% 45.821% 62.953%)
796796
Relative Color Syntax
797797
</h2>
798798

799+
<h3 id="rcs-intro">
800+
Introduction to Relative Color Syntax
801+
</h3>
802+
799803
In previous levels of this specification,
800804
the color functions could only specify colors in an absolute manner,
801805
by directly specifying all of the color channels.
@@ -811,6 +815,15 @@ can <em>either</em> be directly specified,
811815
or taken from the origin color
812816
(and possibly modified with [=math functions=]).
813817

818+
The origin color and the relative color need not use the same color function.
819+
820+
All operations take part in the
821+
[=color space=] of the [=relative color=] function;
822+
the [=origin color=] is converted to that color space,
823+
and [=channel keywords=]
824+
refer to the color space of the relative color,
825+
<em>not</em> the [=origin color=].
826+
814827

815828
<wpt>
816829
relative-currentcolor-a98rgb-01.html
@@ -840,7 +853,6 @@ but they all follow a common structure:
840853

841854
* An [=origin color=] can be specified with a ''from <<color>>'' value at the start of the function.
842855
This includes the optional alpha channel, if specified.
843-
* The origin color and the relative color need not use the same color function.
844856
* If an [=origin color=] is specified,
845857
the remaining arguments can either be specified directly, as normal,
846858
or be specified as a <dfn>channel keyword</dfn>

0 commit comments

Comments
 (0)