Skip to content

Commit c78d5d0

Browse files
committed
Updated the serialization section.
1 parent 6d2d8b3 commit c78d5d0

2 files changed

Lines changed: 18 additions & 14 deletions

File tree

css3-images/Overview.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1995,25 +1995,26 @@ <h3 id=serializing-image-notation><span class=secno>8.3. </span>
19951995
<ol>
19961996
<li>Append "image(" to s.
19971997

1998-
<li>For each argument, serialize the argument as an &lt;image-decl>,
1999-
&lt;color>, &lt;element-reference>, or &lt;gradient> as appropriate, and
2000-
append it to s. Then, if it is not the final argument, append a comma and
2001-
a space ", " to s.
1998+
<li>For each argument, serialize the argument as an &lt;image-decl> or
1999+
&lt;color> as appropriate, and append it to s. Then, if it is not the
2000+
final argument, append a comma and a space ", " to s.
20022001

20032002
<li>Append a close parenthesis ")" to s.
20042003
</ol>
20052004

20062005
<p>To serialize an <a href="#ltimage-decl"><i>&lt;image-decl></i></a>:
20072006

20082007
<ol>
2009-
<li>Serialize the first part of the value (the &lt;string> or
2010-
&lt;url-token>) as a string.
2008+
<li>Serialize the first part of the value (the &lt;string>) as a string.
20112009

20122010
<li>If a &lt;resolution> was provided, append a space " " to s. Then
20132011
serialize the &lt;resolution> and append it to s.
20142012

20152013
<li>If the &lsquo;<code class=property>snap</code>&rsquo; keyword was
20162014
provided, append a space " " and the literal string "snap" to s.
2015+
2016+
<li>If a directional keyword was provided, append a space " " to s, then
2017+
append the keyword to s.
20172018
</ol>
20182019
<!-- ====================================================================== -->
20192020

@@ -2194,7 +2195,7 @@ <h3 id=serializing-properties><span class=secno>8.7. </span> Serializing
21942195
<li>If both the &lsquo;<code class=css>from-image</code>&rsquo; keyword
21952196
and a &lt;resolution> are specified, append a space " " to s.
21962197

2197-
<li>If a &lt;resolution is specified, serialize it and append it to s.
2198+
<li>If a &lt;resolution> is specified, serialize it and append it to s.
21982199
</ol>
21992200

22002201
<p>To serialize the &lsquo;<a href="#image-orientation0"><code

css3-images/Overview.src.html

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1525,23 +1525,26 @@ <h3 id='serializing-image-notation'>
15251525
<ol>
15261526
<li>Append "image(" to s.</li>
15271527

1528-
<li>For each argument, serialize the argument as an &lt;image-decl>,
1529-
&lt;color>, &lt;element-reference>, or &lt;gradient> as appropriate, and
1530-
append it to s. Then, if it is not the final argument, append a comma
1531-
and a space ", " to s.</li>
1528+
<li>For each argument, serialize the argument as an &lt;image-decl> or
1529+
&lt;color> as appropriate, and append it to s. Then, if it is not the final
1530+
argument, append a comma and a space ", " to s.</li>
15321531

15331532
<li>Append a close parenthesis ")" to s.</li>
15341533
</ol>
15351534

15361535
<p>To serialize an <i>&lt;image-decl></i>:</p>
15371536

15381537
<ol>
1539-
<li>Serialize the first part of the value (the &lt;string> or &lt;url-token>)
1540-
as a string.</li>
1538+
<li>Serialize the first part of the value (the &lt;string>) as a string.</li>
1539+
15411540
<li>If a &lt;resolution> was provided, append a space " " to s. Then
15421541
serialize the &lt;resolution> and append it to s.</li>
1542+
15431543
<li>If the 'snap' keyword was provided, append a space " " and the literal
15441544
string "snap" to s.</li>
1545+
1546+
<li>If a directional keyword was provided, append a space " " to s, then
1547+
append the keyword to s.</li>
15451548
</ol>
15461549

15471550
<!-- ====================================================================== -->
@@ -1718,7 +1721,7 @@ <h3 id='serializing-properties'>
17181721
<li>If both the ''from-image'' keyword and a &lt;resolution> are specified,
17191722
append a space " " to s.</li>
17201723

1721-
<li>If a &lt;resolution is specified, serialize it and append it to s.</li>
1724+
<li>If a &lt;resolution> is specified, serialize it and append it to s.</li>
17221725
</ol>
17231726

17241727
<p>To serialize the 'image-orientation' property:</p>

0 commit comments

Comments
 (0)