@@ -1902,7 +1902,7 @@ <h3>CSS Declaration Blocks</h3>
19021902
19031903 < p class ="XXX "> To
19041904 < dfn id ="serialize-a-css-declaration-block "> serialize a CSS declaration block</ dfn >
1905- ...</ p >
1905+ ...</ p >
19061906
19071907
19081908
@@ -2236,19 +2236,6 @@ <h4>Serializing CSS Values</h4>
22362236 followed by '< code > ")</ code > '.</ p >
22372237
22382238 <!--
2239- <ol>
2240- <li><p>Relative lengths (<code>em</code>, <code>ex</code>, <code>px</code>,
2241- all the font-size keywords and <code>%</code>) do not have their units
2242- changed. However, absolute lengths must be given in millimeters. For example,
2243- the canonical version of <code>+012.0pt</code> is <code>4.2333mm</code> (give
2244- or take a few significant figures). <span class="note"><em>Computed</em>
2245- values may well be in different units than the specified value. User agents
2246- are to use <code>px</code> as their final units for computed length
2247- values.</span></p></li>
2248-
2249- <li><p>When a <code><length></code> of zero is given change it to
2250- "<code>0px</code>"</p></li>
2251-
22522239 <li>
22532240 <p>A <code><color></code> value is canonicalized as follows:</p>
22542241
@@ -2286,29 +2273,6 @@ <h4>Serializing CSS Values</h4>
22862273 </dl>
22872274 </li>
22882275
2289- <li><p>Angles are canonicalized to <code>deg</code> and normalized to the
2290- range of their property. For example, <code>azimuth: 700grad</code> would be
2291- canonicalized to <code>azimuth: 270deg</code>. This also applies to angle
2292- keywords as used in the <code>elevation</code> and <code>azimuth</code>
2293- properties, they are canonicalized to their value in degrees.</p></li>
2294-
2295- <li><p>Times are canonicalized to seconds (<code>s</code>).</p></li>
2296-
2297- <li><p>Frequencies are canonicalized to Hertz (<code>Hz</code>).</p></li>
2298-
2299- <li><p>For all integers and real numbers, including those with units, these
2300- canonicalization steps <em class="ct">must</em> be followed: If the number
2301- is <code>0</code>, the canonical result is the literal string <code>0</code>
2302- plus any units (for lengths, the unit identifier will have been removed
2303- before this step). Otherwise, leading <!- -and trailing - ->zeros
2304- <em class="ct">must</em> be omitted, any leading <code>+</code>
2305- <em class="ct">must</em> be omitted, the decimal point in a real number
2306- <em class="ct">must</em> be omitted unless there is a fractional part, and if
2307- the number is in the range <code>-1 < <var title="">x</var> < 1</code>, then one
2308- leading <code>0</code> <em class="ct">must</em> be inserted before the
2309- decimal point. The number of given significant figures is completely user
2310- agent dependent.</p></li>
2311-
23122276 <li><p>Where multiple values may appear in any order without changing the
23132277 meaning of the value (typically represented by a double bar <code>||</code>
23142278 in the value syntax), user agents are to use the canonical order as given in
@@ -2324,21 +2288,7 @@ <h4>Serializing CSS Values</h4>
23242288
23252289 <li><p><code><specific-voice></code> and <code><family-name</code>
23262290 values are to be quoted.</p></li>
2327-
2328- <li><p>Double quotes (rather than single quotes) <em class="ct">shall</em> be
2329- used for string quotation. (When changing from single quotes to double
2330- quotes, double quotes already in the string are escaped.)</p></li>
2331-
2332- <li><p>The quotes in the <code><uri></code> form should be removed.
2333- (Parenthesises that were in the string, along with any other characters not
2334- legal when the string is not quoted (such as commas), must be
2335- escaped.)</p></li>
2336-
2337- <li><p>Unnecessary escapes should be removed. (For example, <code>\z</code>
2338- should be represented as <code>z</code>. This extends to unescaping UNICODE
2339- escapes, except, of course, if the encoding cannot contain those
2340- characters!)</p></li>
2341-
2291+
23422292 <li><p>Where components of the value may be dropped without changing the
23432293 meaning of the value (for example, initial values in shorthand properties),
23442294 then they should be removed. If this would remove all the values, then the
@@ -2347,7 +2297,7 @@ <h4>Serializing CSS Values</h4>
23472297 <code>background-color</code> is the first component of the value; for
23482298 <code>border</code> it would be <code>0</code> since the first component of
23492299 that value is <code>border-width</code>).</p></li>
2350-
2300+
23512301 <li>
23522302 <p>A single space should be added after each comma that is not part of a
23532303 string, except where that would change the meaning of the value. For
@@ -2360,20 +2310,6 @@ <h4>Serializing CSS Values</h4>
23602310 <pre>foo, bar, baz</pre>
23612311 </li>
23622312
2363- <li>
2364- <p>Whenever case is insensitive, for example in property or counter names,
2365- the text should be changed to the canonical case as given in the syntax
2366- definition. For example, the canonical value of:</p>
2367-
2368- <pre>COUNTER( PAR-NUM,UPPER-ROMAN ) DISC</pre>
2369-
2370- <p>is:</p>
2371-
2372- <pre>counter(par-num, upper-roman) disc</pre>
2373-
2374- <p>but the color <code>WINDOWTEXT</code> becomes
2375- <code>WindowText</code>.</p>
2376- </li>
23772313 </ol>
23782314 -->
23792315
0 commit comments