Skip to content

Commit 9d07962

Browse files
committed
[css-color-4] Clarified when alpha 1 is omitted from serialization, #8311
1 parent d922d39 commit 9d07962

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

css-color-4/Overview.bs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5630,7 +5630,7 @@ Resolving sRGB values
56305630
The computed and used value
56315631
is the corresponding sRGB color,
56325632
paired with the specified alpha channel
5633-
(after clamping to [0.0, 1.0])
5633+
(after clamping to [0, 1])
56345634
and defaulting to opaque if unspecified).
56355635

56365636
@@ -5661,7 +5661,7 @@ Resolving sRGB values
56615661
Otherwise, the specified, computed and used value
56625662
is the corresponding sRGB color,
56635663
paired with the specified alpha channel
5664-
(after clamping to [0.0, 1.0])
5664+
(after clamping to [0, 1])
56655665
and defaulting to opaque if unspecified).
56665666

56675667
For historical reasons, when ''calc()'' in sRGB colors
@@ -5928,7 +5928,7 @@ Serializing alpha values
59285928
This applies to any <> value which can take an optional alpha value.
59295929
It does not apply to the ''opacity'' property.
59305930

5931-
If, after clamping to the range [0.0, 1.0] the alpha is exactly 1,
5931+
If, after clamping to the range [0, 1] the alpha is 1,
59325932
it is omitted from the serialization;
59335933
an implicit value of 1 (fully opaque) is the default.
59345934

0 commit comments

Comments
 (0)