Skip to content

Commit 12447a2

Browse files
committed
serialize some more components
1 parent 6671022 commit 12447a2

2 files changed

Lines changed: 117 additions & 6 deletions

File tree

cssom/Overview.html

Lines changed: 62 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3503,6 +3503,44 @@ <h4 id=serializing-css-values><span class=secno>6.6.2. </span>Serializing
35033503
<dd>The color is <code>rgba(0, 0, 0, 0)</code>.</dd>
35043504
-->
35053505

3506+
<dt>&lt;counter>
3507+
3508+
<dd>
3509+
<p>In case of nested counters with the same name the concatenation of
3510+
these strings:</p>
3511+
3512+
<ol>
3513+
<li>
3514+
<p>The string "<code>counters(</code>", followed by the first
3515+
&lt;identifier> component, serialized, followed by "<code>,</code>"
3516+
(U+002C), followed by a space (U+0020), followed by the &lt;string>
3517+
component, serialized.
3518+
3519+
<li>
3520+
<p>If there is a second <&lt;identifier> component: "<code>,</code>"
3521+
(U+002C), followed by a space (U+0020), followed by the second
3522+
&lt;identifier> component, serialized.
3523+
3524+
<li>
3525+
<p>"<code>)</code>" (U+0029).
3526+
</ol>
3527+
3528+
<p>Otherwise, the concatenation of these strings:</p>
3529+
3530+
<ol>
3531+
<li>
3532+
<p>The string "<code>counter(</code>", followed by the first
3533+
&lt;identifier> component, serialized.
3534+
3535+
<li>
3536+
<p>If there is a second <&lt;identifier> component: "<code>,</code>"
3537+
(U+002C), followed by a space (U+0020), followed by the second
3538+
&lt;identifier> component, serialized.
3539+
3540+
<li>
3541+
<p>"<code>)</code>" (U+0029).
3542+
</ol>
3543+
35063544
<dt>&lt;frequency>
35073545

35083546
<dd>
@@ -3519,8 +3557,7 @@ <h4 id=serializing-css-values><span class=secno>6.6.2. </span>Serializing
35193557

35203558
<dd>
35213559
<p>A base-ten integer using digits 0-9 (U+0030 to U+0039) in the shortest
3522-
form possible, preceded by a "<code>-</code>" (U+002D) if it is
3523-
negative.
3560+
form possible, preceded by "<code>-</code>" (U+002D) if it is negative.
35243561

35253562
<dt>&lt;length>
35263563

@@ -3530,8 +3567,8 @@ <h4 id=serializing-css-values><span class=secno>6.6.2. </span>Serializing
35303567

35313568
<p>Absolute lengths: the number of millimeters serialized as per
35323569
&lt;number> followed by the literal string "<code>mm</code>". <span
3533-
class=XXX>Rumor has it absolute lengths will become relative lengths. If
3534-
not, change to centimeters?</span></p>
3570+
class=XXX>Rumor has it absolute lengths will become relative lengths.
3571+
Centimeters would be compatible with &lt;resolution>...</span></p>
35353572

35363573
<p>Relative lengths: the &lt;number> component serialized as per
35373574
&lt;number> followed by the unit in its canonical form as defined in its
@@ -3556,8 +3593,17 @@ <h4 id=serializing-css-values><span class=secno>6.6.2. </span>Serializing
35563593
<p>The resolution in dots per centimeter serialized as per &lt;number>
35573594
followed by the literal string "<code>dpcm</code>".
35583595

3596+
<dt>&lt;shape>
3597+
3598+
<dd>
3599+
<p class=XXX>...
3600+
35593601
<dt>&lt;string>
35603602

3603+
<dt>&lt;family-name>
3604+
3605+
<dt>&lt;specific-voice>
3606+
35613607
<dd>
35623608
<p>The string <a href="#escape-a-string" title="escape a string">string
35633609
escaped</a>.
@@ -3575,6 +3621,18 @@ <h4 id=serializing-css-values><span class=secno>6.6.2. </span>Serializing
35753621
URL">URL escaped</a>.
35763622
</dl>
35773623

3624+
<p> &lt;absolute-size>, &lt;border-width>, &lt;border-style>, &lt;bottom>,
3625+
&lt;generic-family>, &lt;generic-voice>, &lt;left>, &lt;margin-width>,
3626+
&lt;padding-width>, &lt;relative-size>, &lt;right>, and &lt;top>, are
3627+
considered macros by this specification. They all represent instances of
3628+
components outlined above.
3629+
3630+
<p class=XXX>One idea is that we can remove this section somewhere in the
3631+
CSS3/CSS4 timeline by moving the above definitions to the drafts that
3632+
define the CSS components.
3633+
3634+
<hr>
3635+
35783636
<p>To <dfn id=escape-a-character>escape a character</dfn> means to create a
35793637
string of "<code>\</code>" (U+005C), followed by the character.
35803638

cssom/Overview.src.html

Lines changed: 55 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2198,6 +2198,32 @@ <h4>Serializing CSS Values</h4>
21982198
<dd>The color is <code>rgba(0, 0, 0, 0)</code>.</dd>
21992199
-->
22002200

2201+
<dt>&lt;counter></dt>
2202+
<dd>
2203+
<p>In case of nested counters with the same name the concatenation of
2204+
these strings:</p>
2205+
<ol>
2206+
<li><p>The string "<code>counters(</code>", followed by the
2207+
first &lt;identifier> component, serialized, followed by
2208+
"<code>,</code>" (U+002C), followed by a space (U+0020), followed by
2209+
the &lt;string> component, serialized.</p></li>
2210+
<li><p>If there is a second <&lt;identifier> component:
2211+
"<code>,</code>" (U+002C), followed by a space (U+0020), followed by
2212+
the second &lt;identifier> component, serialized.</p></li>
2213+
<li><p>"<code>)</code>" (U+0029).</p></li>
2214+
</ol>
2215+
2216+
<p>Otherwise, the concatenation of these strings:</p>
2217+
<ol>
2218+
<li><p>The string "<code>counter(</code>", followed by the
2219+
first &lt;identifier> component, serialized.</p></li>
2220+
<li><p>If there is a second <&lt;identifier> component:
2221+
"<code>,</code>" (U+002C), followed by a space (U+0020), followed by
2222+
the second &lt;identifier> component, serialized.</p></li>
2223+
<li><p>"<code>)</code>" (U+0029).</p></li>
2224+
</ol>
2225+
</dd>
2226+
22012227
<dt>&lt;frequency></dt>
22022228
<dd><p>The frequency in hertz serialized as per &lt;number> followed by
22032229
the literal string "<code>hz</code>".</dd>
@@ -2208,7 +2234,7 @@ <h4>Serializing CSS Values</h4>
22082234

22092235
<dt>&lt;integer></dt>
22102236
<dd><p>A base-ten integer using digits 0-9 (U+0030 to U+0039) in the
2211-
shortest form possible, preceded by a "<code>-</code>" (U+002D) if it is
2237+
shortest form possible, preceded by "<code>-</code>" (U+002D) if it is
22122238
negative.</p></dd>
22132239

22142240
<dt>&lt;length></dt>
@@ -2219,7 +2245,7 @@ <h4>Serializing CSS Values</h4>
22192245
<p>Absolute lengths: the number of millimeters serialized as per
22202246
&lt;number> followed by the literal string "<code>mm</code>".
22212247
<span class=XXX>Rumor has it absolute lengths will become relative
2222-
lengths. If not, change to centimeters?</p>
2248+
lengths. Centimeters would be compatible with &lt;resolution>...</p>
22232249

22242250
<p>Relative lengths: the &lt;number> component serialized as per
22252251
&lt;number> followed by the unit in its canonical form as defined in its
@@ -2239,7 +2265,12 @@ <h4>Serializing CSS Values</h4>
22392265
<dd><p>The resolution in dots per centimeter serialized as per
22402266
&lt;number> followed by the literal string "<code>dpcm</code>".</dd>
22412267

2268+
<dt>&lt;shape></dt>
2269+
<dd><p class="XXX">...</p></dd>
2270+
22422271
<dt>&lt;string></dt>
2272+
<dt>&lt;family-name></dt>
2273+
<dt>&lt;specific-voice></dt>
22432274
<dd><p>The string
22442275
<span title="escape a string">string escaped</span>.</p></dd>
22452276

@@ -2252,6 +2283,28 @@ <h4>Serializing CSS Values</h4>
22522283
<span title="escape a URL">URL escaped</span>.</p></dd>
22532284
</dl>
22542285

2286+
<p>
2287+
&lt;absolute-size>,
2288+
&lt;border-width>,
2289+
&lt;border-style>,
2290+
&lt;bottom>,
2291+
&lt;generic-family>,
2292+
&lt;generic-voice>,
2293+
&lt;left>,
2294+
&lt;margin-width>,
2295+
&lt;padding-width>,
2296+
&lt;relative-size>,
2297+
&lt;right>, and
2298+
&lt;top>,
2299+
are considered macros by this specification. They all represent instances
2300+
of components outlined above.</p>
2301+
2302+
<p class="XXX">One idea is that we can remove this section somewhere in
2303+
the CSS3/CSS4 timeline by moving the above definitions to the drafts that
2304+
define the CSS components.</p>
2305+
2306+
<hr>
2307+
22552308
<p>To <dfn>escape a character</dfn> means to create a string of
22562309
"<code>\</code>" (U+005C), followed by the character.</p>
22572310

0 commit comments

Comments
 (0)