You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cssom-1/Overview.bs
+5-21Lines changed: 5 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -2812,30 +2812,14 @@ depends on the component, as follows:
2812
2812
2813
2813
2814
2814
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]].
2822
2819
2823
2820
<dt><<alpha-value>>
2824
2821
<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 <number>.
2836
-
</ol>
2837
-
2838
-
Otherwise, return the result of serializing the given value as a <number>.
0 commit comments