Skip to content

Commit cead130

Browse files
committed
[css-color-4] Define specified value for oklab and freinds
1 parent f2d2985 commit cead130

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

css-color-4/Overview.bs

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5321,8 +5321,9 @@ Resolving Lab and LCH values</h3>
53215321

53225322
This applies to ''lab()'' and ''lch()'' values.
53235323

5324-
The computed and used value
5324+
The specified, computed and used value
53255325
is the corresponding CIE Lab or LCH color
5326+
(after clamping of L, C and H)
53265327
paired with the specified alpha channel
53275328
(as a <<number>>, not a <<percentage>>;
53285329
and defaulting to opaque if unspecified).
@@ -5339,8 +5340,9 @@ Resolving Oklab and Oklch values</h3>
53395340

53405341
This applies to ''oklab()'' and ''oklch()'' values.
53415342

5342-
The computed and used value
5343+
The specified, computed and used value
53435344
is the corresponding Oklab or Oklch color
5345+
(after clamping of L, C and H)
53445346
paired with the specified alpha channel
53455347
(as a <<number>>, not a <<percentage>>;
53465348
and defaulting to opaque if unspecified).
@@ -5355,7 +5357,7 @@ Resolving Oklab and Oklch values</h3>
53555357
<h3 id="resolving-color-function-values">
53565358
Resolving values of the ''color()'' function</h3>
53575359

5358-
The computed and used value
5360+
The specified, computed and used value
53595361
is the color in the specified [=color space=],
53605362
paired with the specified alpha channel
53615363
(as a <<number>>, not a <<percentage>>;
@@ -5385,19 +5387,20 @@ Resolving values of the ''color()'' function</h3>
53855387
This applies to [=system colors=]
53865388
(including the <<deprecated-color>>s),
53875389
''transparent'',
5388-
and ''currentcolor''.
5390+
and ''color>/currentcolor''.
53895391

5390-
Each <<system-color>> keyword computes
5391-
to the corresponding color in its color space.
5392+
The specified value for each <<system-color>> keyword
5393+
is the corresponding color in its color space.
53925394
However, such colors must not be altered by
53935395
'forced colors mode'.
53945396

5395-
The computed and used value of ''transparent'' is [=transparent black=].
5397+
The specified value of ''transparent'' is "transparent"
5398+
while the computed and used value is [=transparent black=].
53965399

53975400
The ''currentcolor'' keyword computes to itself.
53985401

53995402
In the 'color' property,
5400-
the used value of ''currentcolor'' is the [=inherited value=].
5403+
the used value of ''color>/currentcolor'' is the [=inherited value=].
54015404
In any other property,
54025405
its used value is the used value of the 'color' property on the same element.
54035406

@@ -5553,7 +5556,8 @@ Serializing sRGB values</h3>
55535556

55545557
Corresponding sRGB values use either the ''rgb()'' or ''rgba()'' form
55555558
(depending on whether the (clamped) alpha is exactly 1, or not),
5556-
with all lowercase letters for the function name.
5559+
with all <a href="https://infra.spec.whatwg.org/#ascii-lowercase">ASCII lowercase</a>
5560+
letters for the function name.
55575561

55585562
During serialization,
55595563
any [=missing=] values
@@ -5664,7 +5668,8 @@ Serializing Lab and LCH values</h3>
56645668
The serialized form of ''lch()'' and ''lab()'' values
56655669
is derived from the [=computed value=]
56665670
and uses the ''lab()'' or ''lch()'' forms,
5667-
with lowercase letters for the function name.
5671+
with <a href="https://infra.spec.whatwg.org/#ascii-lowercase">ASCII lowercase</a>
5672+
letters for the function name.
56685673

56695674
The component values are serialized in base 10;
56705675
the Lightness, a and b component values
@@ -5734,7 +5739,8 @@ Serializing Oklab and Oklch values</h3>
57345739
The serialized form of ''oklch()'' and ''oklab()'' values
57355740
is derived from the [=computed value=]
57365741
and uses the ''oklab()'' or ''oklch()'' forms,
5737-
with lowercase letters for the function name.
5742+
with <a href="https://infra.spec.whatwg.org/#ascii-lowercase">ASCII lowercase</a>
5743+
letters for the function name.
57385744

57395745
The component values are serialized in base 10;
57405746
the Lightness, a and b component values
@@ -5818,7 +5824,8 @@ Serializing values of the ''color()'' function</h3>
58185824
The serialized form of ''color()'' values
58195825
is derived from the [=computed value=]
58205826
and uses the ''color()'' form,
5821-
with lowercase letters for the function name
5827+
with <a href="https://infra.spec.whatwg.org/#ascii-lowercase">ASCII lowercase</a>
5828+
letters for the function name
58225829
and the color space name.
58235830

58245831
The component values are serialized in base 10,
@@ -5927,7 +5934,8 @@ Serializing other colors</h3>
59275934

59285935
The serialized form of these values
59295936
is derived from the [=computed value=]
5930-
and uses lowercase letters for the color name.
5937+
and uses <a href="https://infra.spec.whatwg.org/#ascii-lowercase">ASCII lowercase</a>
5938+
letters for the color name.
59315939

59325940
The serialized form of ''transparent'' is the string "rgba(0, 0, 0, 0)".
59335941

0 commit comments

Comments
 (0)