Skip to content

Commit f2d3b0b

Browse files
committed
media.query() it is
1 parent 6b8370c commit f2d3b0b

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

cssom/Overview.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@
3535
<div class=head>
3636
<h1 id=cssom>Cascading Style Sheets Object Model (<abbr>CSSOM</abbr>)</h1>
3737

38-
<h2 class="no-num no-toc" id="">Editor's draft <!--W3C Working Draft--> 13
38+
<h2 class="no-num no-toc" id="">Editor's draft <!--W3C Working Draft--> 18
3939
June 2007</h2>
4040

4141
<dl>
4242
<dt>This version:</dt>
4343
<!--
44-
<dd><a href="http://www.w3.org/TR/2007/WD-cssom-20070613/">http://www.w3.org/TR/2007/WD-cssom-20070613/</a></dd>
44+
<dd><a href="http://www.w3.org/TR/2007/WD-cssom-20070618/">http://www.w3.org/TR/2007/WD-cssom-20070618/</a></dd>
4545
-->
4646

4747
<dd>...
@@ -2606,7 +2606,7 @@ <h4 id=the-media><span class=secno>4.1.2. </span>The <code
26062606

26072607
<pre class=idl>interface <dfn id=media>Media</dfn> {
26082608
readonly attribute DOMString <a href="#type" title=media-type>type</a>;
2609-
boolean <a href="#matchmedia" title=media-matchmedia>matchMedia</a>(in DOMString <var title="">mediaquery</var>);
2609+
boolean <a href="#media-query" title=media-query>query</a>(in DOMString <var title="">mediaquery</var>);
26102610
};</pre>
26112611

26122612
<p>The <dfn id=type title=media-type><code>type</code></dfn> attribute, on
@@ -2615,7 +2615,7 @@ <h4 id=the-media><span class=secno>4.1.2. </span>The <code
26152615
title="">print</code>, etc). This is a lowercase string, as defined by the
26162616
CSS specification. [CSS]
26172617

2618-
<p>The <dfn id=matchmedia title=media-matchmedia><code>matchMedia(<var
2618+
<p>The <dfn id=media-query title=media-query><code>query(<var
26192619
title="">mediaquery</var>)</code></dfn> method, when invoked, <em
26202620
class=ct>must</em> return the result of the following algorithm:
26212621

cssom/Overview.src.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2158,28 +2158,28 @@ <h4>The <code title="">Media</code> Interface</h4>
21582158

21592159
<pre class="idl">interface <dfn id="media">Media</dfn> {
21602160
readonly attribute DOMString <span title="media-type">type</span>;
2161-
boolean <span title="media-matchmedia">matchMedia</span>(in DOMString <var title="">mediaquery</var>);
2161+
boolean <span title="media-query">query</span>(in DOMString <var title="">mediaquery</var>);
21622162
};</pre>
2163-
2163+
21642164
<p>The <dfn title="media-type"><code>type</code></dfn> attribute, on getting,
21652165
<em class="ct">must</em> return the string that represents the canvas' current
21662166
rendering mode (<code title="">screen</code>, <code title="">print</code>,
21672167
etc). This is a lowercase string, as defined by the CSS specification.
21682168
[CSS]</p>
2169-
2169+
21702170
<p>The
2171-
<dfn title="media-matchmedia"><code>matchMedia(<var title="">mediaquery</var>)</code></dfn>
2171+
<dfn id="media-query" title="media-query"><code>query(<var title="">mediaquery</var>)</code></dfn>
21722172
method, when invoked, <em class="ct">must</em> return the result of the
21732173
following algorithm:</p>
2174-
2174+
21752175
<ol>
21762176
<li>If <var title="">mediaquery</var> can not be parsed according to the
21772177
rules given in the Media Query specification return <code>false</code> and
21782178
terminate this algorithm.</li>
2179-
2179+
21802180
<li>If <var title="">mediaquery</var> matches the state of the current view
21812181
return <code>true</code> and terminate this algorithm.</li>
2182-
2182+
21832183
<li>Return <code>false</code>.</li>
21842184
</ol>
21852185

0 commit comments

Comments
 (0)