Skip to content

Commit 7d8e16b

Browse files
committed
[css-color-5] Ported definitions for colors that "resolve to sRGB" and "support legacy color syntax" from CSS Color 4
1 parent b73a1ae commit 7d8e16b

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

css-color-4/Overview.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ Representing Colors: the <<color>> type</h2>
877877
* the constant [=named color=] keywords
878878
* the variable <<system-color>> keywords and ''currentColor'' keyword.
879879

880-
The <dfn>color functions</dfn>
880+
The <dfn export>color functions</dfn>
881881
use CSS [=functional notation=]
882882
to represent colors in a variety of [=color spaces=]
883883
by specifying their component coordinates.
@@ -960,7 +960,7 @@ Representing Colors: the <<color>> type</h2>
960960
&lt;color> = <<color-base>> | currentColor | <<system-color>>
961961
962962
<dfn>&lt;color-base></dfn> = <<hex-color>> | <<color-function>> | <<named-color>> | transparent
963-
<dfn>&lt;color-function></dfn> = <<rgb()>> | <<rgba()>> |
963+
<dfn export>&lt;color-function></dfn> = <<rgb()>> | <<rgba()>> |
964964
<<hsl()>> | <<hsla()>> | <<hwb()>> |
965965
<<lab()>> | <<lch()>> | <<oklab()>> | <<oklch()>> |
966966
<<color()>>

css-color-5/Overview.bs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,23 @@ Introduction {#intro}
145145
Nor are any of those values used inside <<color-mix()>>
146146
or in relative color syntax.
147147

148+
The colors that <dfn export>resolve to sRGB</dfn> are:
149+
150+
- <a href="css-color-4#hex-notation">hex</a> colors
151+
- ''rgb()'' and ''rgba()'' values, including relative colors
152+
- ''hsl()'' and ''hsla()'' values, including relative colors
153+
- ''hwb()'' values, including relative colors
154+
- <a href="css-color-4#named-colors">named</a> colors
155+
156+
The functions that <dfn export>support legacy color syntax</dfn> are:
157+
158+
- ''rgb()'' and ''rgba()''
159+
- ''hsl()'' and ''hsla()''
160+
161+
The <<hsl()>>, <<hsla()>>, <<hwb()>>, <<lch()>>, and <<oklch()>> [=color functions=]
162+
are [=cylindrical polar color=] representations using a <<hue>> angle;
163+
the other [=color functions=] use [=rectangular orthogonal color=] representations.
164+
148165

149166

150167
<!--

0 commit comments

Comments
 (0)