@@ -304,8 +304,7 @@ <h3 id=css-pixels><span class=secno>2.3. </span>CSS pixels</h3>
304304 < p class =note > This does not apply to e.g. < a
305305 href ="#dom-stylemedia-matchmedium "> < code
306306 title =dom-StyleMedia-matchMedium > matchMedium()</ code > </ a > as the units are
307- explicitly given there and defined by the Media Queries specification.
308- [< cite > < a href ="#ref-mq "> MQ</ a > </ cite > ]
307+ explicitly given there.
309308
310309 < h2 id =dom-features > < span class =secno > 3. </ span > DOM Features</ h2 >
311310
@@ -512,20 +511,25 @@ <h3 id=the-stylemedia-interface><span class=secno>4.1. </span>The <code
512511
513512 < p > The < dfn id =dom-stylemedia-matchmedium
514513 title =dom-StyleMedia-matchMedium > < code > matchMedium(< var
515- title =""> medium</ var > )</ code > </ dfn > method, when invoked, < em
516- class =ct > must</ em > return the result of the following algorithm:</ p >
517- <!-- should use "parse a media query" -->
514+ title =""> medium</ var > )</ code > </ dfn > method < em class =ct > must</ em > run
515+ these steps:
518516
519517 < ol >
520518 < li >
521- < p > If < var title =""> medium</ var > can be parsed according to the rules
522- given in the Media Queries specification and matches the state of the
523- rendered < a href ="#document "> < code > Document</ code > </ a > return
524- < code > true</ code > and terminate this algorithm. [< cite > < a
525- href ="#ref-mq "> MQ</ a > </ cite > ]
519+ < p > Let < var title =""> m</ var > be the result of < a
520+ href ="#parse-a-media-query " title ="parse a media query "> parsing</ a > the
521+ given value.
522+
523+ < li >
524+ < p > If < var title =""> m</ var > is null terminate these steps.
526525
527526 < li >
528- < p > Otherwise, return < code > false</ code > .
527+ < p > If < var title =""> m</ var > matches the state of the rendered < a
528+ href ="#document "> < code > Document</ code > </ a > return true and terminate
529+ this algorithm.
530+
531+ < li >
532+ < p > Otherwise, return false.
529533 </ ol >
530534
531535 < div class =example >
@@ -1523,12 +1527,6 @@ <h2 class=no-num id=references>References</h2>
15231527 href ="http://www.whatwg.org/specs/web-apps/current-work/ "> HTML5</ a > </ cite >
15241528 (work in progress), I. Hickson. WHATWG.
15251529
1526- < dt > [< dfn id =ref-mq > MQ</ dfn > ]
1527-
1528- < dd > < cite > < a href ="http://www.w3.org/TR/css3-mediaqueries/ "> Media
1529- Queries</ a > </ cite > , H. Wium Lie T. Çelik, D. Glazman, A. van
1530- Kesteren. W3C.
1531-
15321530 < dt > [< dfn id =ref-rfc2119 > RFC2119</ dfn > ]
15331531
15341532 < dd > < cite > < a href ="http://ietf.org/rfc/rfc2119 "> Key words for use in RFCs
0 commit comments