@@ -18,7 +18,7 @@ <h1 id="cssom">CSS Object Model (CSSOM)</h1>
1818
1919 <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
2020
21- < h2 class ="no-num no-toc " id ="w3c-doctype "> Editor's Draft 27 September 2012</ h2 >
21+ < h2 class ="no-num no-toc " id ="w3c-doctype "> Editor's Draft 1 October 2012</ h2 >
2222
2323 < dl >
2424
@@ -83,7 +83,7 @@ <h2 class="no-num no-toc" id="sotd">Status of this Document</h2>
8383 can be found in the
8484 < a href ="http://www.w3.org/TR/ "> W3C technical reports index at http://www.w3.org/TR/.</ a > </ em >
8585
86- < p class ="dontpublish "> This is the 27 September 2012 Editor's Draft of CSSOM. Please send comments to
86+ < p class ="dontpublish "> This is the 1 October 2012 Editor's Draft of CSSOM. Please send comments to
8787 < a href ="mailto:www-style@w3.org?subject=%5Bcssom%5D%20 "> www-style@w3.org</ a >
8888 (< a href ="http://lists.w3.org/Archives/Public/www-style/ "> archived</ a > )
8989 with < samp > [cssom]</ samp > at the start of the subject line.
@@ -2072,7 +2072,47 @@ <h4 id="serializing-css-values"><span class="secno">6.6.2 </span>Serializing CSS
20722072 the literal string "< code > deg</ code > ".</ dd >
20732073
20742074 < dt > <color></ dt >
2075- < dd > < p class ="issue "> preserve system colors, maybe color keywords...</ dd >
2075+ < dd >
2076+ < p > If <color> is a component of a resolved or computed value, then
2077+ return the color using the < code > rgb()</ code > or < code > rgba()</ code > functional
2078+ notation as follows:</ p >
2079+ < ol >
2080+ < li > If the alpha component of the color is equal to one, then return the serialization of the
2081+ < code > rgb()</ code > functional equivalent of the opaque color.</ li >
2082+ < li > If the alpha component of the color is not equal to one, then return the serialization of the
2083+ < code > rgba()</ code > functional equivalent of the non-opaque color.</ li >
2084+ </ ol >
2085+ < p > The serialization of the < code > rgb()</ code > functional equivalent is the concatenation of the following:</ p >
2086+ < ol >
2087+ < li > The string "< code > rgb(</ code > ".</ li >
2088+ < li > The shortest base-ten integer serialization of the red value.</ li >
2089+ < li > The string "< code > , </ code > ".</ li >
2090+ < li > The shortest base-ten serialization of the green value.</ li >
2091+ < li > The string "< code > , </ code > ".</ li >
2092+ < li > The shortest base-ten serialization of the blue value.</ li >
2093+ < li > The string "< code > )</ code > ".</ li >
2094+ </ ol >
2095+ < p > The serialization of the < code > rgba()</ code > functional equivalent is the concatenation of the following:</ p >
2096+ < ol >
2097+ < li > The string "< code > rgba(</ code > ".</ li >
2098+ < li > The shortest base-ten serialization of the red value.</ li >
2099+ < li > The string "< code > , </ code > ".</ li >
2100+ < li > The shortest base-ten serialization of the green value.</ li >
2101+ < li > The string "< code > , </ code > ".</ li >
2102+ < li > The shortest base-ten serialization of the blue value.</ li >
2103+ < li > The string "< code > , </ code > ".</ li >
2104+ < li > The shortest serialization of the <number> that denotes the alpha value.</ li >
2105+ < li > The string "< code > )</ code > ".</ li >
2106+ </ ol >
2107+
2108+ < p > If <color> is a component of a specified value, then
2109+ return the color as follows:</ p >
2110+ < ol >
2111+ < li > If the color was explicitly specified by the author, then return the original, author specified color value.</ li >
2112+ < li > Otherwise, return the value that would be returned if the color were a component of a computed value.</ li >
2113+ </ ol >
2114+ < p class ="issue "> Should author specified values be normalized for case? Or should original case be preserved?</ p >
2115+ </ dd >
20762116 <!--
20772117 <dt>It is a system color</dt>
20782118
0 commit comments