Skip to content

Commit 3ef22fc

Browse files
committed
[cssom-1] Point to CSS Color 4 for specified value of <color>, and for <alpha> #9798
1 parent a28b013 commit 3ef22fc

File tree

1 file changed

+5
-21
lines changed

1 file changed

+5
-21
lines changed

cssom-1/Overview.bs

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2812,30 +2812,14 @@ depends on the component, as follows:
28122812

28132813

28142814
If <<color>> is a component of a specified value, then
2815-
return the color as follows:
2816-
<ol>
2817-
<li>If the color was explicitly specified by the author, then return the original, author specified color value.
2818-
<li>Otherwise, return the value that would be returned if the color were a component of a computed value.
2819-
</ol>
2820-
2821-
Issue: Should author specified values be normalized for case, the same as computed values? Or should original case be preserved?
2815+
for sRGB values, see
2816+
[[css-color-4#resolving-sRGB-values]].
2817+
For other color functions, see
2818+
[[css-color-4#resolving-color-values]].
28222819

28232820
<dt><<alpha-value>>
28242821
<dd>
2825-
If the value is internally represented as an integer between 0 and 255 inclusive (i.e. 8-bit unsigned integer),
2826-
follow these steps:
2827-
2828-
<ol>
2829-
<li>Let <var>alpha</var> be the given integer.
2830-
<li>If there exists an integer between 0 and 100 inclusive that,
2831-
when multiplied with 2.55 and rounded to the closest integer (rounding up if two values are equally close), equals <var>alpha</var>,
2832-
let <var>rounded</var> be that integer divided by 100.
2833-
<li>Otherwise, let <var>rounded</var> be <var>alpha</var> divided by 0.255 and rounded to the closest integer (rounding up if two values are equally close),
2834-
divided by 1000.
2835-
<li>Return the result of serializing <var>rounded</var> as a &lt;number>.
2836-
</ol>
2837-
2838-
Otherwise, return the result of serializing the given value as a &lt;number>.
2822+
See [[css-color-4#serializing-alpha-values]].
28392823

28402824
<dt><<counter>>
28412825
<dd>

0 commit comments

Comments
 (0)