Skip to content

Commit ee5c285

Browse files
committed
[cssom] editorial improvements
1 parent d83fba1 commit ee5c285

2 files changed

Lines changed: 30 additions & 33 deletions

File tree

cssom/Overview.html

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ <h3 id="common-serializing-idioms"><span class="secno">3.1 </span>Common Seriali
276276
string of "<code>\</code>" (U+005C), followed by the Unicode code point as
277277
the smallest possible number of hexadecimal digits in the range 0-9 a-f
278278
(U+0030 to U+0039 and U+0061 to U+0066) to represent the code point in
279-
base 16, followed by a space (U+0020).</p>
279+
base 16, followed by a single SPACE (U+0020).</p>
280280

281281
<p>To <dfn id="serialize-an-identifier">serialize an identifier</dfn> means to create a string represented
282282
by the concatenation of, for each character of the identifier:</p>
@@ -402,7 +402,7 @@ <h3 id="serializing-media-queries"><span class="secno">4.2 </span>Serializing Me
402402

403403
<ol>
404404
<li><p>If the media query is negated append "<code>not</code>", followed
405-
by a space (U+0020), to <var>s</var>.</li>
405+
by a single SPACE (U+0020), to <var>s</var>.</li>
406406

407407
<li><p>Let <var>type</var> be the media type of the media query,
408408
<a href="#serialize-an-identifier" title="serialize an identifier">escaped</a> and
@@ -414,7 +414,7 @@ <h3 id="serializing-media-queries"><span class="secno">4.2 </span>Serializing Me
414414

415415
<li><p>If <var>type</var> is not "<code>all</code>" or if the
416416
media query is negated append <var>type</var>, followed by a
417-
space (U+0020), followed by "<code>and</code>", followed by a space
417+
single SPACE (U+0020), followed by "<code>and</code>", followed by a single SPACE
418418
(U+0020), to <var>s</var>.</li>
419419

420420
<li><p>Sort the media features in lexicographical order.</li>
@@ -428,15 +428,15 @@ <h3 id="serializing-media-queries"><span class="secno">4.2 </span>Serializing Me
428428
to <var>s</var>.<p></li>
429429

430430
<li><p>If a value is given append a "<code>:</code>" (U+003A), followed
431-
by a space (U+0020), followed by the
431+
by a single SPACE (U+0020), followed by the
432432
<a href="#serialize-a-media-feature-value" title="serialize a media feature value">serialized media feature value</a>,
433433
to <var>s</var>.</li>
434434

435435
<li><p>Append a "<code>)</code>" (U+0029) to
436436
<var>s</var>.</li>
437437

438-
<li><p>If this is not the last media feature append a space (U+0020),
439-
followed by "<code>and</code>", followed by a space (U+0020), to
438+
<li><p>If this is not the last media feature append a single SPACE (U+0020),
439+
followed by "<code>and</code>", followed by a single SPACE (U+0020), to
440440
<var>s</var>.</li>
441441
</ol>
442442
</li>
@@ -641,11 +641,11 @@ <h3 id="serializing-selectors"><span class="secno">5.2 </span>Serializing Select
641641
<var>s</var>.</li>
642642

643643
<li><p>If this is not the last part of the chain of the selector append a
644-
space (U+0020), followed by the combinator
644+
single SPACE (U+0020), followed by the combinator
645645
"<code>&gt;</code>",
646646
"<code>+</code>", or
647647
"<code>~</code>"
648-
as appropriate, followed by another space (U+0020) if the combinator was
648+
as appropriate, followed by another single SPACE (U+0020) if the combinator was
649649
not whitespace, to <var>s</var>.</li>
650650

651651
<li><p>If this is the last part of the chain of the selector and there is
@@ -1584,12 +1584,12 @@ <h3 id="css-rules"><span class="secno">6.4 </span>CSS Rules</h3>
15841584
<dd>
15851585
<p>The result of concatenating these strings:</p>
15861586
<ol>
1587-
<li>The literal string "<code>@import</code>", followed by a space
1587+
<li>The literal string "<code>@import</code>", followed by a single SPACE
15881588
(U+0020), followed by the <a href="#serialize-a-url" title="serialize a URL">URL escaped</a>
15891589
value of the <code title="dom-CSSImportRule-href">href</code>
15901590
attribute.</li>
15911591
<li>If the associated <code>MediaList</code> object is not empty, a
1592-
space (U+0020), followed by the value of the
1592+
single SPACE (U+0020), followed by the value of the
15931593
<code title="dom-MediaList-mediaText">mediaText</code> attribute of the
15941594
associated <code>MediaList</code> object.</li>
15951595
<li>A "<code>;</code>" (U+003B).</li>
@@ -1606,11 +1606,11 @@ <h3 id="css-rules"><span class="secno">6.4 </span>CSS Rules</h3>
16061606
<dd><p class="issue">...</dd>
16071607

16081608
<dt><code>CSSNamespaceRule</code></dt>
1609-
<dd><p>The literal string "<code>@namespace</code>", followed by a space
1609+
<dd><p>The literal string "<code>@namespace</code>", followed by a single SPACE
16101610
(U+0020), followed by the
16111611
<a href="#serialize-an-identifier" title="serialize an identifier">identifier escaped</a> value of the
16121612
<code title="dom-CSSNamespaceRule-prefix">prefix</code> attribute (if
1613-
any), followed by a space (U+0020) if there is a prefix, followed by the
1613+
any), followed by a single SPACE (U+0020) if there is a prefix, followed by the
16141614
<a href="#serialize-a-url" title="serialize a URL">URL escaped</a> value of the
16151615
<code title="dom-CSSNamespaceRule-namespaceURI">namespaceURI</code>
16161616
attribute, followed the character "<code>;</code>" (U+003B).</dd>
@@ -1879,16 +1879,16 @@ <h3 id="css-declaration-blocks"><span class="secno">6.5 </span>CSS Declaration B
18791879
<li><p>If <var>v</var> is the empty string, then continue.</li>
18801880
<li><p>Otherwise (<var>v</var> is non-empty), perform the following sub-steps:</p>
18811881
<ol>
1882-
<li><p>If <var>s</var> is not empty, then append a SPACE (U+0020) to <var>s</var>.</li>
1882+
<li><p>If <var>s</var> is not empty, then append a single SPACE (U+0020) to <var>s</var>.</li>
18831883
<li><p>Append <var>n</var> to <var>s</var>.</li>
1884-
<li><p>Append COLON (U+003A) followed by SPACE (U+0020), i.e., "<code>: </code>", to <var>s</var>.</li>
1884+
<li><p>Append COLON (U+003A) followed by a single SPACE (U+0020), i.e., "<code>: </code>", to <var>s</var>.</li>
18851885
<li><p>Append <var>v</var> to <var>s</var>.</li>
18861886
</ol>
18871887
</li>
18881888
<li><p>Let <var>p</var> be the value returned by <code><var>d</var>.getPropertyPriority(<var>n</var>)</code>.</li>
18891889
<li><p>If <var>p</var> is not the empty string, then perform the following sub-steps:</p>
18901890
<ol>
1891-
<li><p>Append SPACE (U+0020) followed by EXCLAMATION MARK (U+0021), i.e., "<code> !</code>", to <var>s</var>.</li>
1891+
<li><p>Append a single SPACE (U+0020) followed by EXCLAMATION MARK (U+0021), i.e., "<code> !</code>", to <var>s</var>.</li>
18921892
<li><p>Append <var>p</var> to <var>s</var>.</li>
18931893
</ol>
18941894
</li>
@@ -2365,9 +2365,6 @@ <h2 id="resolved-values"><span class="secno">8 </span>Resolved Values</h2>
23652365
<dt>'<code>border-collapse</code>'
23662366
<dt>'<code>border-color</code>'
23672367
<dt>'<code>border-spacing</code>'
2368-
<dt>'<code>border-style</code>'
2369-
<dt>'<code>border-top</code>'
2370-
<dt>'<code>border-right</code>'
23712368
<dt>'<code>border-collapse</code>'
23722369
<dt>'<code>border-color</code>'
23732370
<dt>'<code>border-spacing</code>'

cssom/cssom-source

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@
206206
string of "<code>\</code>" (U+005C), followed by the Unicode code point as
207207
the smallest possible number of hexadecimal digits in the range 0-9 a-f
208208
(U+0030 to U+0039 and U+0061 to U+0066) to represent the code point in
209-
base 16, followed by a space (U+0020).</p>
209+
base 16, followed by a single SPACE (U+0020).</p>
210210

211211
<p>To <dfn>serialize an identifier</dfn> means to create a string represented
212212
by the concatenation of, for each character of the identifier:</p>
@@ -332,7 +332,7 @@
332332

333333
<ol>
334334
<li><p>If the media query is negated append "<code>not</code>", followed
335-
by a space (U+0020), to <var>s</var>.</p></li>
335+
by a single SPACE (U+0020), to <var>s</var>.</p></li>
336336

337337
<li><p>Let <var>type</var> be the media type of the media query,
338338
<span title="serialize an identifier">escaped</span> and
@@ -344,7 +344,7 @@
344344

345345
<li><p>If <var>type</var> is not "<code>all</code>" or if the
346346
media query is negated append <var>type</var>, followed by a
347-
space (U+0020), followed by "<code>and</code>", followed by a space
347+
single SPACE (U+0020), followed by "<code>and</code>", followed by a single SPACE
348348
(U+0020), to <var>s</var>.</p></li>
349349

350350
<li><p>Sort the media features in lexicographical order.</p></li>
@@ -358,15 +358,15 @@
358358
to <var>s</var>.</p></li>
359359

360360
<li><p>If a value is given append a "<code>:</code>" (U+003A), followed
361-
by a space (U+0020), followed by the
361+
by a single SPACE (U+0020), followed by the
362362
<span title="serialize a media feature value">serialized media feature value</span>,
363363
to <var>s</var>.</p></li>
364364

365365
<li><p>Append a "<code>)</code>" (U+0029) to
366366
<var>s</var>.</p></li>
367367

368-
<li><p>If this is not the last media feature append a space (U+0020),
369-
followed by "<code>and</code>", followed by a space (U+0020), to
368+
<li><p>If this is not the last media feature append a single SPACE (U+0020),
369+
followed by "<code>and</code>", followed by a single SPACE (U+0020), to
370370
<var>s</var>.</p></li>
371371
</ol>
372372
</li>
@@ -532,11 +532,11 @@
532532
<var>s</var>.</p></li>
533533

534534
<li><p>If this is not the last part of the chain of the selector append a
535-
space (U+0020), followed by the combinator
535+
single SPACE (U+0020), followed by the combinator
536536
"<code>></code>",
537537
"<code>+</code>", or
538538
"<code>~</code>"
539-
as appropriate, followed by another space (U+0020) if the combinator was
539+
as appropriate, followed by another single SPACE (U+0020) if the combinator was
540540
not whitespace, to <var>s</var>.</p></li>
541541

542542
<li><p>If this is the last part of the chain of the selector and there is
@@ -1354,12 +1354,12 @@
13541354
<dd>
13551355
<p>The result of concatenating these strings:</p>
13561356
<ol>
1357-
<li>The literal string "<code>@import</code>", followed by a space
1357+
<li>The literal string "<code>@import</code>", followed by a single SPACE
13581358
(U+0020), followed by the <span title="serialize a URL">URL escaped</span>
13591359
value of the <code title="dom-CSSImportRule-href">href</code>
13601360
attribute.</li>
13611361
<li>If the associated <code>MediaList</code> object is not empty, a
1362-
space (U+0020), followed by the value of the
1362+
single SPACE (U+0020), followed by the value of the
13631363
<code title="dom-MediaList-mediaText">mediaText</code> attribute of the
13641364
associated <code>MediaList</code> object.</li>
13651365
<li>A "<code>;</code>" (U+003B).</li>
@@ -1376,11 +1376,11 @@
13761376
<dd><p class="issue">...</p></dd>
13771377

13781378
<dt><code>CSSNamespaceRule</code></dt>
1379-
<dd><p>The literal string "<code>@namespace</code>", followed by a space
1379+
<dd><p>The literal string "<code>@namespace</code>", followed by a single SPACE
13801380
(U+0020), followed by the
13811381
<span title="serialize an identifier">identifier escaped</span> value of the
13821382
<code title="dom-CSSNamespaceRule-prefix">prefix</code> attribute (if
1383-
any), followed by a space (U+0020) if there is a prefix, followed by the
1383+
any), followed by a single SPACE (U+0020) if there is a prefix, followed by the
13841384
<span title="serialize a URL">URL escaped</span> value of the
13851385
<code title="dom-CSSNamespaceRule-namespaceURI">namespaceURI</code>
13861386
attribute, followed the character "<code>;</code>" (U+003B).</p></dd>
@@ -1482,16 +1482,16 @@
14821482
<li><p>If <var>v</var> is the empty string, then continue.</p></li>
14831483
<li><p>Otherwise (<var>v</var> is non-empty), perform the following sub-steps:</p>
14841484
<ol>
1485-
<li><p>If <var>s</var> is not empty, then append a SPACE (U+0020) to <var>s</var>.</p></li>
1485+
<li><p>If <var>s</var> is not empty, then append a single SPACE (U+0020) to <var>s</var>.</p></li>
14861486
<li><p>Append <var>n</var> to <var>s</var>.</p></li>
1487-
<li><p>Append COLON (U+003A) followed by SPACE (U+0020), i.e., "<code>: </code>", to <var>s</var>.</p></li>
1487+
<li><p>Append COLON (U+003A) followed by a single SPACE (U+0020), i.e., "<code>: </code>", to <var>s</var>.</p></li>
14881488
<li><p>Append <var>v</var> to <var>s</var>.</p></li>
14891489
</ol>
14901490
</li>
14911491
<li><p>Let <var>p</var> be the value returned by <code><var>d</var>.getPropertyPriority(<var>n</var>)</code>.</p></li>
14921492
<li><p>If <var>p</var> is not the empty string, then perform the following sub-steps:</p>
14931493
<ol>
1494-
<li><p>Append SPACE (U+0020) followed by EXCLAMATION MARK (U+0021), i.e., "<code> !</code>", to <var>s</var>.</p></li>
1494+
<li><p>Append a single SPACE (U+0020) followed by EXCLAMATION MARK (U+0021), i.e., "<code> !</code>", to <var>s</var>.</p></li>
14951495
<li><p>Append <var>p</var> to <var>s</var>.</p></li>
14961496
</ol>
14971497
</li>

0 commit comments

Comments
 (0)