@@ -796,6 +796,10 @@ which is rgb(52.446% 45.821% 62.953%)
796
796
Relative Color Syntax
797
797
</h2>
798
798
799
+ <h3 id="rcs-intro">
800
+ Introduction to Relative Color Syntax
801
+ </h3>
802
+
799
803
In previous levels of this specification,
800
804
the color functions could only specify colors in an absolute manner,
801
805
by directly specifying all of the color channels.
@@ -811,6 +815,15 @@ can <em>either</em> be directly specified,
811
815
or taken from the origin color
812
816
(and possibly modified with [=math functions=] ).
813
817
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
+
814
827
815
828
<wpt>
816
829
relative-currentcolor-a98rgb-01.html
@@ -840,7 +853,6 @@ but they all follow a common structure:
840
853
841
854
* An [=origin color=] can be specified with a ''from <<color>>'' value at the start of the function.
842
855
This includes the optional alpha channel, if specified.
843
- * The origin color and the relative color need not use the same color function.
844
856
* If an [=origin color=] is specified,
845
857
the remaining arguments can either be specified directly, as normal,
846
858
or be specified as a <dfn>channel keyword</dfn>
0 commit comments