Skip to content

Commit 6373ad2

Browse files
committed
simplify some more wording in the media query section
1 parent 1c90a66 commit 6373ad2

2 files changed

Lines changed: 37 additions & 31 deletions

File tree

cssom/Overview.html

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,10 @@ <h3 id=serializing-media-queries><span class=secno>4.2. </span>Serializing
363363
space (U+0020), to <var title="">s</var>.
364364

365365
<li>
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
368-
href="#converted-to-ascii-lowercase">converted to ASCII lowercase</a>.
366+
<p>Let <var title="">type</var> be the media type of the media query, <a
367+
href="#escape-an-identifier" title="escape an identifier">escaped</a>
368+
and <a href="#converted-to-ascii-lowercase">converted to ASCII
369+
lowercase</a>.
369370

370371
<li>
371372
<p>If the media query does not contain media features append <var
@@ -587,10 +588,10 @@ <h3 id=the-medialist-interface><span class=secno>4.4. </span>The <code
587588
};</pre>
588589

589590
<p>The <dfn id=dom-medialist-mediatext
590-
title=dom-MediaList-mediaText><code>mediaText</code></dfn> attribute <em
591-
class=ct>must</em>, on getting, return a <a
591+
title=dom-MediaList-mediaText><code>mediaText</code></dfn> attribute, on
592+
getting, <em class=ct>must</em> return a <a
592593
href="#serialize-a-list-of-media-queries" title="serialize a list of media
593-
queries">serialization</a> of the <span>list of media qeuries</span>.
594+
queries">serialization</a> of the <span>list of media queries</span>.
594595

595596
<p>On setting the <code title=dom-MediaList-mediaText><a
596597
href="#dom-medialist-mediatext">mediaText</a></code> attribute these steps
@@ -612,21 +613,23 @@ <h3 id=the-medialist-interface><span class=secno>4.4. </span>The <code
612613
</ol>
613614

614615
<p>The <dfn id=dom-medialist-length
615-
title=dom-MediaList-length><code>length</code></dfn> attribute, on
616-
getting, <em class=ct>must</em> return the number of media queries in the
617-
<a href="#collection-of-media-queries">collection of media queries</a>.
616+
title=dom-MediaList-length><code>length</code></dfn> attribute <em
617+
class=ct>must</em> return the number of media queries in the <a
618+
href="#collection-of-media-queries">collection of media queries</a>.
618619

619620
<p>The <dfn id=dom-medialist-item title=dom-MediaList-item><code>item(<var
620-
title="">index</var>)</code></dfn> method, when invoked, <em
621-
class=ct>must</em> return the item in the list given by <var
622-
title="">index</var>, or null, if <var title="">index</var> is greater
623-
than or equal to the number of items in the list.</p>
621+
title="">index</var>)</code></dfn> method <em class=ct>must</em> return
622+
the media query in the <a href="#collection-of-media-queries">collection
623+
of media queries</a> given by <var title="">index</var>, or null, if <var
624+
title="">index</var> is greater than or equal to the number of media
625+
queries in the <a href="#collection-of-media-queries">collection of media
626+
queries</a>.</p>
624627
<!-- XXX need consistency here WebIDL? list of media queries? -->
625628

626629
<p>The <dfn id=dom-medialist-appendmedium
627630
title=dom-MediaList-appendmedium><code>appendMedium(<var
628-
title="">medium</var>)</code></dfn> method <em class=ct>must</em>, when
629-
invoked, run these steps:
631+
title="">medium</var>)</code></dfn> method <em class=ct>must</em> run
632+
these steps:
630633

631634
<ol>
632635
<li>
@@ -650,8 +653,8 @@ <h3 id=the-medialist-interface><span class=secno>4.4. </span>The <code
650653

651654
<p>The <dfn id=dom-medialist-deletemedium
652655
title=dom-MediaList-deletemedium><code>deleteMedium(<var
653-
title="">medium</var>)</code></dfn> method <em class=ct>must</em>, when
654-
invoked, run these steps:
656+
title="">medium</var>)</code></dfn> method <em class=ct>must</em> run
657+
these steps:
655658

656659
<ol>
657660
<li>

cssom/Overview.src.html

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ <h3>Serializing Media Queries</h3>
196196
by a space (U+0020), to <var title="">s</var>.</p></li>
197197

198198
<li><p>Let <var title="">type</var> be the media type of the media query,
199-
<span title="escape as identifier">escaped</span> and
199+
<span title="escape an 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
@@ -373,9 +373,9 @@ <h3>The <code title="">MediaList</code> Interface</h3>
373373

374374
<p>The
375375
<dfn id="dom-medialist-mediatext" title="dom-MediaList-mediaText"><code>mediaText</code></dfn>
376-
attribute <em class="ct">must</em>, on getting, return a
376+
attribute, on getting, <em class="ct">must</em> return a
377377
<span title="serialize a list of media queries">serialization</span> of
378-
the <span>list of media qeuries</span>.</p>
378+
the <span>list of media queries</span>.</p>
379379

380380
<p>On setting the <code title="dom-MediaList-mediaText">mediaText</code>
381381
attribute these steps <em class="ct">must</em> be run:</p>
@@ -393,19 +393,21 @@ <h3>The <code title="">MediaList</code> Interface</h3>
393393

394394
<p>The
395395
<dfn id="dom-medialist-length" title="dom-MediaList-length"><code>length</code></dfn>
396-
attribute, on getting, <em class="ct">must</em> return the number of media
397-
queries in the <span>collection of media queries</span>.</p>
396+
attribute <em class="ct">must</em> return the number of media queries in
397+
the <span>collection of media queries</span>.</p>
398398

399399
<p>The
400400
<dfn id="dom-medialist-item" title="dom-MediaList-item"><code>item(<var title="">index</var>)</code></dfn>
401-
method, when invoked, <em class="ct">must</em> return the item in the list
402-
given by <var title="">index</var>, or null, if <var title="">index</var> is
403-
greater than or equal to the number of items in the list.</p>
401+
method <em class="ct">must</em> return the media query in the
402+
<span>collection of media queries</span> given by
403+
<var title="">index</var>, or null, if <var title="">index</var> is
404+
greater than or equal to the number of media queries in the
405+
<span>collection of media queries</span>.</p>
404406
<!-- XXX need consistency here WebIDL? list of media queries? -->
405407

406408
<p>The
407409
<dfn id="dom-medialist-appendmedium" title="dom-MediaList-appendmedium"><code>appendMedium(<var title="">medium</var>)</code></dfn>
408-
method <em class="ct">must</em>, when invoked, run these steps:</p>
410+
method <em class="ct">must</em> run these steps:</p>
409411

410412
<ol>
411413
<li><p>Let <var title="">m</var> be the result of
@@ -425,18 +427,19 @@ <h3>The <code title="">MediaList</code> Interface</h3>
425427

426428
<p>The
427429
<dfn id="dom-medialist-deletemedium" title="dom-MediaList-deletemedium"><code>deleteMedium(<var title="">medium</var>)</code></dfn>
428-
method <em class="ct">must</em>, when invoked, run these steps:</p>
429-
430+
method <em class="ct">must</em> run these steps:</p>
431+
430432
<ol>
431433
<li><p>Let <var title="">m</var> be the result of
432434
<span title="parse a media query">parsing</span> the given
433435
value.</p></li>
434436

435437
<li><p>If <var title="">m</var> is null terminate these steps.</p></li>
436438

437-
<li><p>Remove any media query from the <span>collection of media queries</span>
438-
for which <span title="compare media queries">comparing</span> the media
439-
query with <var title="">m</var> returns true.</p></li>
439+
<li><p>Remove any media query from the
440+
<span>collection of media queries</span> for which
441+
<span title="compare media queries">comparing</span> the media query with
442+
<var title="">m</var> returns true.</p></li>
440443
</ol>
441444

442445
<h3>Creating a <code title="">MediaList</code> Object</h3>

0 commit comments

Comments
 (0)