1.1 --- a/cssom/cssom-source Sun Sep 30 16:27:02 2012 +0900 1.2 +++ b/cssom/cssom-source Mon Oct 01 12:17:55 2012 +0800 1.3 @@ -1628,7 +1628,47 @@ 1.4 the literal string "<code>deg</code>".</p></dd> 1.5 1.6 <dt><color></dt> 1.7 - <dd><p class="issue">preserve system colors, maybe color keywords...</p></dd> 1.8 + <dd> 1.9 + <p>If <color> is a component of a resolved or computed value, then 1.10 + return the color using the <code>rgb()</code> or <code>rgba()</code> functional 1.11 + notation as follows:</p> 1.12 + <ol> 1.13 + <li>If the alpha component of the color is equal to one, then return the serialization of the 1.14 + <code>rgb()</code> functional equivalent of the opaque color.</li> 1.15 + <li>If the alpha component of the color is not equal to one, then return the serialization of the 1.16 + <code>rgba()</code> functional equivalent of the non-opaque color.</li> 1.17 + </ol> 1.18 + <p>The serialization of the <code>rgb()</code> functional equivalent is the concatenation of the following:</p> 1.19 + <ol> 1.20 + <li>The string "<code>rgb(</code>".</li> 1.21 + <li>The shortest base-ten integer serialization of the red value.</li> 1.22 + <li>The string "<code>, </code>".</li> 1.23 + <li>The shortest base-ten serialization of the green value.</li> 1.24 + <li>The string "<code>, </code>".</li> 1.25 + <li>The shortest base-ten serialization of the blue value.</li> 1.26 + <li>The string "<code>)</code>".</li> 1.27 + </ol> 1.28 + <p>The serialization of the <code>rgba()</code> functional equivalent is the concatenation of the following:</p> 1.29 + <ol> 1.30 + <li>The string "<code>rgba(</code>".</li> 1.31 + <li>The shortest base-ten serialization of the red value.</li> 1.32 + <li>The string "<code>, </code>".</li> 1.33 + <li>The shortest base-ten serialization of the green value.</li> 1.34 + <li>The string "<code>, </code>".</li> 1.35 + <li>The shortest base-ten serialization of the blue value.</li> 1.36 + <li>The string "<code>, </code>".</li> 1.37 + <li>The shortest serialization of the <number> that denotes the alpha value.</li> 1.38 + <li>The string "<code>)</code>".</li> 1.39 + </ol> 1.40 + 1.41 + <p>If <color> is a component of a specified value, then 1.42 + return the color as follows:</p> 1.43 + <ol> 1.44 + <li>If the color was explicitly specified by the author, then return the original, author specified color value.</li> 1.45 + <li>Otherwise, return the value that would be returned if the color were a component of a computed value.</li> 1.46 + </ol> 1.47 + <p class="issue">Should author specified values be normalized for case? Or should original case be preserved?</p> 1.48 + </dd> 1.49 <!-- 1.50 <dt>It is a system color</dt> 1.51