Skip to content

Commit e3ee4a1

Browse files
author
Chris Lilley
committed
[css-color-5] Use term "modern color syntax" when defining RCS
1 parent 6c885ec commit e3ee4a1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

css-color-5/Overview.bs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,8 @@ the color functions could only specify colors in an absolute manner,
788788
by directly specifying all of the color channels.
789789

790790
The new <dfn export>relative color</dfn> syntax
791-
allows existing colors to be modified
791+
extends [=modern color syntax=]
792+
to allow existing colors to be modified
792793
using the color functions:
793794
if an <dfn>origin color</dfn> is specified,
794795
then each color channel can <em>either</em> be directly specified,
@@ -806,6 +807,7 @@ The precise details of each function's changes to accomodate [=relative colors=]
806807
but they all follow a common structure:
807808

808809
* An [=origin color=] can be specified with a ''from <<color>>'' value at the start of the function.
810+
* The origin color and the relative color need not use the same color function.
809811
* If an [=origin color=] is specified,
810812
the remaining arguments can either be specified directly, as normal,
811813
be specified as a <dfn>channel keyword</dfn>
@@ -816,8 +818,7 @@ but they all follow a common structure:
816818
If the alpha value is omitted, however,
817819
it defaults to taking from the [=origin color=]
818820
(rather than defaulting to ''100%'', as it does in the absolute syntax).
819-
* Relative color syntax only applies to the modern
820-
(space separated components, / separator for alpha) syntax.
821+
* Relative color syntax only applies to the [=modern color syntax=].
821822
It <em>cannot</em> be used with <a>legacy color syntax</a>
822823
and attempting to do so is an error.
823824

0 commit comments

Comments
 (0)