Skip to content

Commit 1c90a66

Browse files
committed
simplify some text and correct a mistake
1 parent 7955aff commit 1c90a66

2 files changed

Lines changed: 37 additions & 36 deletions

File tree

cssom/Overview.html

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -359,12 +359,12 @@ <h3 id=serializing-media-queries><span class=secno>4.2. </span>Serializing
359359
<p>Let <var title="">s</var> be the empty string.
360360

361361
<li>
362-
<p>If the media query is negated append the literal string
363-
"<code>not</code>", followed by a U+0020 SPACE character, to <var
364-
title="">s</var>.
362+
<p>If the media query is negated append "<code>not</code>", followed by a
363+
space (U+0020), to <var title="">s</var>.
365364

366365
<li>
367-
<p>Let <var title="">type</var> be the media query, <a
366+
<p>Let <var title="">type</var> be the media type of the media query,
367+
<span title="escape as identifier">escaped</span> and <a
368368
href="#converted-to-ascii-lowercase">converted to ASCII lowercase</a>.
369369

370370
<li>
@@ -374,9 +374,9 @@ <h3 id=serializing-media-queries><span class=secno>4.2. </span>Serializing
374374

375375
<li>
376376
<p>If <var title="">type</var> is not "<code>all</code>" or if the media
377-
query is negated append <var title="">type</var>, followed by a U+0020
378-
SPACE character, followed by "<code>and</code>", followed by a U+0020
379-
SPACE character, to <var title="">s</var>.
377+
query is negated append <var title="">type</var>, followed by a space
378+
(U+0020), followed by "<code>and</code>", followed by a space (U+0020),
379+
to <var title="">s</var>.
380380

381381
<li>
382382
<p>Sort the media features in lexicographical order.
@@ -385,25 +385,24 @@ <h3 id=serializing-media-queries><span class=secno>4.2. </span>Serializing
385385
<p>Then, for each media feature:</p>
386386

387387
<ol>
388-
<li>Append a U+0028 LEFT PARENTHESIS character, followed by the media
389-
feature name, <a href="#converted-to-ascii-lowercase">converted to
390-
ASCII lowercase</a>, to <var title="">s</var>.
388+
<li>Append a "<code>(</code>" (U+0028), followed by the media feature
389+
name, <a href="#converted-to-ascii-lowercase">converted to ASCII
390+
lowercase</a>, to <var title="">s</var>.
391391

392392
<li>
393-
<p>If a value is given append a U+003A COLON (:) character, followed by
394-
a U+0020 SPACE character, followed by the <a
393+
<p>If a value is given append a "<code>:</code>" (U+003A), followed by
394+
a space (U+0020), followed by the <a
395395
href="#serialize-a-media-feature-value" title="serialize a media
396396
feature value">serialized media feature value</a>, to <var
397397
title="">s</var>.</p>
398398

399399
<li>
400-
<p>Append a U+0029 RIGHT PARENTHESIS character to <var
401-
title="">s</var>.
400+
<p>Append a "<code>)</code>" (U+0029) to <var title="">s</var>.
402401

403402
<li>
404-
<p>If this is not the last media feature append a U+0020 SPACE
405-
character, followed by the literal string "<code>and</code>", followed
406-
by a U+0020 SPACE character, to <var title="">s</var>.</p>
403+
<p>If this is not the last media feature append a space (U+0020),
404+
followed by "<code>and</code>", followed by a space (U+0020), to <var
405+
title="">s</var>.
407406
</ol>
408407

409408
<li>
@@ -455,8 +454,9 @@ <h3 id=serializing-media-queries><span class=secno>4.2. </span>Serializing
455454
<var title="">s</var>.
456455

457456
<li>
458-
<p>If this is not the last media query append a "<code>,</code>"
459-
(U+002C), followed by a space (U+0020) to <var title="">s</var>.
457+
<p>If this is not the last media query in the list append a
458+
"<code>,</code>" (U+002C), followed by a space (U+0020) to <var
459+
title="">s</var>.
460460
</ol>
461461

462462
<li>

cssom/Overview.src.html

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -192,43 +192,43 @@ <h3>Serializing Media Queries</h3>
192192
<ol>
193193
<li><p>Let <var title="">s</var> be the empty string.</p></li>
194194

195-
<li><p>If the media query is negated append the literal string
196-
"<code>not</code>", followed by a U+0020 SPACE character, to
197-
<var title="">s</var>.</p></li>
195+
<li><p>If the media query is negated append "<code>not</code>", followed
196+
by a space (U+0020), to <var title="">s</var>.</p></li>
198197

199-
<li><p>Let <var title="">type</var> be the media query,
198+
<li><p>Let <var title="">type</var> be the media type of the media query,
199+
<span title="escape as identifier">escaped</span> and
200200
<span>converted to ASCII lowercase</span>.</p></li>
201201

202202
<li><p>If the media query does not contain media features append
203203
<var title="">type</var>, to <var title="">s</var>,
204204
then return <var title="">s</var> and terminate this algorithm.</p></li>
205205

206206
<li><p>If <var title="">type</var> is not "<code>all</code>" or if the
207-
media query is negated append <var title="">type</var>, followed by
208-
a U+0020 SPACE character, followed by "<code>and</code>", followed by a
209-
U+0020 SPACE character, to <var title="">s</var>.</p></li>
207+
media query is negated append <var title="">type</var>, followed by a
208+
space (U+0020), followed by "<code>and</code>", followed by a space
209+
(U+0020), to <var title="">s</var>.</p></li>
210210

211211
<li><p>Sort the media features in lexicographical order.</p></li>
212212

213213
<li>
214214
<p>Then, for each media feature:</p>
215215

216216
<ol>
217-
<li>Append a U+0028 LEFT PARENTHESIS character, followed by the media
218-
feature name, <span>converted to ASCII lowercase</span>, to
217+
<li>Append a "<code>(</code>" (U+0028), followed by the media feature
218+
name, <span>converted to ASCII lowercase</span>, to
219219
<var title="">s</var>.</p></li>
220220

221-
<li><p>If a value is given append a U+003A COLON (:)
222-
character, followed by a U+0020 SPACE character, followed by the
221+
<li><p>If a value is given append a "<code>:</code>" (U+003A), followed
222+
by a space (U+0020), followed by the
223223
<span title="serialize a media feature value">serialized media feature value</span>,
224224
to <var title="">s</var>.</p>
225225

226-
<li><p>Append a U+0029 RIGHT PARENTHESIS character to
226+
<li><p>Append a "<code>)</code>" (U+0029) to
227227
<var title="">s</var>.</p></li>
228228

229-
<li><p>If this is not the last media feature append a U+0020 SPACE
230-
character, followed by the literal string "<code>and</code>", followed
231-
by a U+0020 SPACE character, to <var title="">s</var>.</p>
229+
<li><p>If this is not the last media feature append a space (U+0020),
230+
followed by "<code>and</code>", followed by a space (U+0020), to
231+
<var title="">s</var>.</p></li>
232232
</ol>
233233
</li>
234234

@@ -270,8 +270,9 @@ <h3>Serializing Media Queries</h3>
270270
<span title="serialize a media query">serializing</span> the media
271271
query to <var title="">s</var>.</p></li>
272272

273-
<li><p>If this is not the last media query append a "<code>,</code>"
274-
(U+002C), followed by a space (U+0020) to <var title="">s</var>.</p></li>
273+
<li><p>If this is not the last media query in the list append a
274+
"<code>,</code>" (U+002C), followed by a space (U+0020) to
275+
<var title="">s</var>.</p></li>
275276
</ol>
276277
</li>
277278

0 commit comments

Comments
 (0)