Skip to content

Commit ac9a111

Browse files
committed
[css-color-5] Same for alpha, w3c#7114
1 parent 102f3c3 commit ac9a111

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

css-color-5/Overview.bs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ the allowed [=channel keywords=] are:
10771077
that correspond to the [=origin color's=] red, green, and blue channels
10781078
after its conversion to sRGB. For <<number>>s, 255 (or 255.0)
10791079
is equivalent to 100%.
1080-
* <dfn value for="rgb()">alpha</dfn> is a <<percentage>> that corresponds to the [=origin color's=] alpha transparency
1080+
* <dfn value for="rgb()">alpha</dfn> is a <<number>> or <<percentage>> that corresponds to the [=origin color's=] alpha transparency
10811081

10821082
<div class="example">
10831083
To manipulate color channels in the sRGB color space:
@@ -1136,7 +1136,7 @@ the allowed [=channel keywords=] are:
11361136
* <dfn value for="hsl()">s</dfn> and <dfn value for="hsl()">l</dfn>
11371137
are <<percentage>>s or <<number>>s that correspond to the [=origin color's=] HSL saturation and lightness
11381138
after its conversion to sRGB
1139-
* <dfn value for="hsl()">alpha</dfn> is a <<percentage>> that corresponds to the [=origin color's=] alpha transparency
1139+
* <dfn value for="hsl()">alpha</dfn> is a <<number>> or <<percentage>> that corresponds to the [=origin color's=] alpha transparency
11401140

11411141
<div class="example">
11421142
This adds 180 degrees to the hue angle, giving a complementary color.
@@ -1172,7 +1172,7 @@ the allowed [=channel keywords=] are:
11721172
* <dfn value for="hwb()">w</dfn> and <dfn value for="hwb()">b</dfn>
11731173
are <<percentage>>s or <<number>>s that correspond to the [=origin color's=] HWB whiteness and blackness
11741174
after its conversion to sRGB
1175-
* <dfn value for="hwb()">alpha</dfn> is a <<percentage>> that corresponds to the [=origin color's=] alpha transparency
1175+
* <dfn value for="hwb()">alpha</dfn> is a <<number>> or <<percentage>> that corresponds to the [=origin color's=] alpha transparency
11761176

11771177
<h3 id="relative-Lab">Relative Lab colors</h3>
11781178

@@ -1194,7 +1194,7 @@ the allowed [=channel keywords=] are:
11941194
that corresponds to the [=origin color's=] CIE Lightness
11951195
* <dfn value for="lab()">a</dfn> and <dfn value for="lab()">b</dfn> are <<percentage>>s or <<number>>s
11961196
that correspond to the [=origin color's=] CIELab a and b axes
1197-
* <dfn value for="lab()">alpha</dfn> is a <<percentage>> that corresponds to the [=origin color's=] alpha transparency
1197+
* <dfn value for="lab()">alpha</dfn> is a <<number>> or <<percentage>> that corresponds to the [=origin color's=] alpha transparency
11981198

11991199
<div class="example">
12001200
Multiple ways to adjust the transparency of a base color:
@@ -1238,7 +1238,7 @@ the allowed [=channel keywords=] are:
12381238
that corresponds to the [=origin color's=] OKLab Lightness
12391239
* <dfn value for="oklab()">a</dfn> and <dfn value for="oklab()">b</dfn> are <<percentage>>s or <<number>>s
12401240
that correspond to the [=origin color's=] OKLab a and b axes
1241-
* <dfn value for="oklab()">alpha</dfn> is a <<percentage>> that corresponds to the [=origin color's=] alpha transparency
1241+
* <dfn value for="oklab()">alpha</dfn> is a <<number>> or <<percentage>> that corresponds to the [=origin color's=] alpha transparency
12421242

12431243
<h3 id="relative-LCH">Relative LCH colors</h3>
12441244

@@ -1263,7 +1263,7 @@ the allowed [=channel keywords=] are:
12631263
* <dfn value for="lch()">h</dfn> is an <<angle>>
12641264
that corresponds to the [=origin color's=] LCH hue,
12651265
normalized to a [0deg, 360deg) range.
1266-
* <dfn value for="lch()">alpha</dfn> is a <<percentage>> that corresponds to the [=origin color's=] alpha transparency
1266+
* <dfn value for="lch()">alpha</dfn> is a <<number>> or <<percentage>> that corresponds to the [=origin color's=] alpha transparency
12671267

12681268
Because LCH is both perceptually uniform and chroma-preserving,
12691269
and because the axes correspond to easily understood attributes of a color,
@@ -1390,7 +1390,7 @@ the allowed [=channel keywords=] are:
13901390
* <dfn value for="oklch()">h</dfn> is an <<angle>>
13911391
that corresponds to the [=origin color's=] OKLCH hue,
13921392
normalized to a [0deg, 360deg) range.
1393-
* <dfn value for="oklch()">alpha</dfn> is a <<percentage>> that corresponds to the [=origin color's=] alpha transparency
1393+
* <dfn value for="oklch()">alpha</dfn> is a <<number>> or <<percentage>> that corresponds to the [=origin color's=] alpha transparency
13941394

13951395
<div class="example" id="ex-oklch-wildly-oog">
13961396
In this example, the aim is again to produce a new color

0 commit comments

Comments
 (0)