html5/spec Overview.html,1.3087,1.3088

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv11473

Modified Files:
	Overview.html 
Log Message:
Update media query requirements to treat '' as 'all'. (whatwg r3926)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.3087
retrieving revision 1.3088
diff -u -d -r1.3087 -r1.3088
--- Overview.html	21 Sep 2009 09:29:38 -0000	1.3087
+++ Overview.html	21 Sep 2009 09:59:01 -0000	1.3088
@@ -392,7 +392,8 @@
      <li><a href="#space-separated-tokens"><span class="secno">2.4.7 </span>Space-separated tokens</a></li>
      <li><a href="#comma-separated-tokens"><span class="secno">2.4.8 </span>Comma-separated tokens</a></li>
      <li><a href="#reversed-dns-identifiers"><span class="secno">2.4.9 </span>Reversed DNS identifiers</a></li>
-     <li><a href="#syntax-references"><span class="secno">2.4.10 </span>References</a></ol></li>
+     <li><a href="#syntax-references"><span class="secno">2.4.10 </span>References</a></li>
+     <li><a href="#mq"><span class="secno">2.4.11 </span>Media queries</a></ol></li>
    <li><a href="#urls"><span class="secno">2.5 </span>URLs</a>
     <ol>
      <li><a href="#terminology-0"><span class="secno">2.5.1 </span>Terminology</a></li>
@@ -2062,7 +2063,7 @@
 
    </dd>
 
-   <dt id="mq">Media Queries</dt>
+   <dt>Media Queries</dt>
 
    <dd>
 
@@ -4207,7 +4208,13 @@
    maybe they just don't know about combining dot above?
    -->
 
-  </ol></div><h3 id="urls"><span class="secno">2.5 </span>URLs</h3><p class="XXX annotation"><b>Status: </b><i>Working draft. </i><span><a href="http://www.w3.org/html/wg/tracker/issues/56">ISSUE-56</a> (urls-webarch) blocks progress to Last Call</span><h4 id="terminology-0"><span class="secno">2.5.1 </span>Terminology</h4><p class="XXX annotation"><b>Status: </b><i>Working draft</i><p>A <dfn id="url">URL</dfn> is a string used to identify a resource.<p>A <a href="#url">URL</a> is a <dfn id="valid-url">valid URL</dfn> if it is a
+  </ol></div><h4 id="mq"><span class="secno">2.4.11 </span>Media queries</h4><p>A string is a <dfn id="valid-media-query">valid media query</dfn> if it matches the
+  <code title="">media_query_list</code> production of the Media
+  Queries specification. <a href="#refsMQ">[MQ]</a><p>A string <dfn id="matches-the-environment">matches the environment</dfn> of a view if it is
+  the empty string, a string consisting of only <a href="#space-character" title="space
+  character">space characters</a>, or is a media query that matches
+  that view's environment according to the definitions given in the
+  Media Queries specification. <a href="#refsMQ">[MQ]</a><h3 id="urls"><span class="secno">2.5 </span>URLs</h3><p class="XXX annotation"><b>Status: </b><i>Working draft. </i><span><a href="http://www.w3.org/html/wg/tracker/issues/56">ISSUE-56</a> (urls-webarch) blocks progress to Last Call</span><h4 id="terminology-0"><span class="secno">2.5.1 </span>Terminology</h4><p class="XXX annotation"><b>Status: </b><i>Working draft</i><p>A <dfn id="url">URL</dfn> is a string used to identify a resource.<p>A <a href="#url">URL</a> is a <dfn id="valid-url">valid URL</dfn> if it is a
   <span>valid Web address</span> as defined by the Web addresses
   specification. <a href="#refsWEBADDRESSES">[WEBADDRESSES]</a><p>A <a href="#url">URL</a> is an <dfn id="absolute-url">absolute URL</dfn> if it is an
   <span>absolute Web address</span> as defined by the Web addresses
@@ -9381,7 +9388,7 @@
   whose context is given by the link's location within the
   document.<p>The <dfn id="attr-link-media" title="attr-link-media"><code>media</code></dfn>
   attribute says which media the resource applies to. The value must
-  be a valid <a href="#mq">media query</a>. <a href="#refsMQ">[MQ]</a><div class="impl">
+  be a <a href="#valid-media-query">valid media query</a>.<div class="impl">
 
   <p>If the link is a <a href="#hyperlink-link" title="hyperlink link">hyperlink</a>
   then the <code title="attr-link-media"><a href="#attr-link-media">media</a></code> attribute is
@@ -9390,10 +9397,11 @@
 
   <p>However, if the link is an <a href="#external-resource-link">external resource link</a>,
   then the <code title="attr-link-media"><a href="#attr-link-media">media</a></code> attribute is
-  prescriptive. The user agent must apply the external resource to
-  <a href="#view" title="view">views</a> while their state match the listed
-  media and the other relevant conditions apply, and must not apply
-  them otherwise.</p><!-- note similar text in <style> section -->
+  prescriptive. The user agent must apply the external resource to a
+  <a href="#view">view</a> when the <code title="attr-link-media"><a href="#attr-link-media">media</a></code> attribute's value <a href="#matches-the-environment">matches
+  the environment</a> of that view and the other relevant
+  conditions apply, and must not apply it otherwise.</p><!-- note
+  similar text in <style> section -->
 
   <p class="note">The external resource might have further
   restrictions defined within that limit its applicability. For
@@ -9401,8 +9409,7 @@
   such further restrictions or requirements.</p><!-- note similar text
   in <style> section -->
 
-  </div><p id="default-media">The default, if the <code title="attr-link-media"><a href="#attr-link-media">media</a></code> attribute is omitted, is
-  <code>all</code>, meaning that by default links apply to all
+  </div><p id="default-media">The default, if the <code title="attr-link-media"><a href="#attr-link-media">media</a></code> attribute is omitted, is "<code title="">all</code>", meaning that by default links apply to all
   media.<p>The <dfn id="attr-link-hreflang" title="attr-link-hreflang"><code>hreflang</code></dfn>
   attribute on the <code><a href="#the-link-element">link</a></code> element has the same semantics as
   the <a href="#attr-hyperlink-hreflang" title="attr-hyperlink-hreflang"><code>hreflang</code>
@@ -10262,12 +10269,17 @@
   user agents must not ignore unknown MIME parameters &mdash; types
   with unknown parameters must be assumed to be unsupported.</p>
 
-  </div><p>The <dfn id="attr-style-media" title="attr-style-media"><code>media</code></dfn>
+  </div><p>However, if the link is an <a href="#external-resource-link">external resource link</a>,
+  then the <code title="attr-link-media"><a href="#attr-link-media">media</a></code> attribute is
+  prescriptive.
+
+  <p>The <dfn id="attr-style-media" title="attr-style-media"><code>media</code></dfn>
   attribute says which media the styles apply to. The value must be a
-  valid <a href="#mq">media query</a>. <a href="#refsMQ">[MQ]</a>
-  <span class="impl">User agents must apply the styles to <a href="#view" title="view">views</a> while their state match the listed media,
-  and must not apply them otherwise.</span></p><!-- note similar text
-  in <link> section --><div class="impl">
+  <a href="#valid-media-query">valid media query</a>.  <span class="impl">The user agent
+  must apply the styles to a <a href="#view">view</a> when the <code title="attr-style-media"><a href="#attr-style-media">media</a></code> attribute's value
+  <a href="#matches-the-environment">matches the environment</a> of that view and the other
+  relevant conditions apply, and must not apply them
+  otherwise.</span></p><!-- note similar text in <link> section --><div class="impl">
 
   <p class="note">The styles might be further limited in scope,
   e.g. in CSS with the use of <code title="">@media</code>
@@ -10276,8 +10288,8 @@
   section -->
 
   </div><p id="style-default-media">The default, if the <code title="attr-style-media"><a href="#attr-style-media">media</a></code> attribute is omitted, is
-  <code>all</code>, meaning that by default styles apply to all
-  media.<p>The <dfn id="attr-style-scoped" title="attr-style-scoped"><code>scoped</code></dfn>
+  "<code title="">all</code>", meaning that by default styles apply to
+  all media.<p>The <dfn id="attr-style-scoped" title="attr-style-scoped"><code>scoped</code></dfn>
   attribute is a <a href="#boolean-attribute">boolean attribute</a>. If set, it indicates
   that the styles are intended just for the subtree rooted at the
   <code><a href="#the-style-element">style</a></code> element's parent element, as opposed to the whole
@@ -18676,7 +18688,9 @@
   attribute gives the intended media type of the <a href="#media-resource">media
   resource</a>, to help the user agent determine if this
   <a href="#media-resource">media resource</a> is useful to the user before fetching
-  it. Its value must be a valid <a href="#mq">media query</a>. <a href="#refsMQ">[MQ]</a><div class="impl">
+  it. Its value must be a <a href="#valid-media-query">valid media query</a>.<p id="source-default-media">The default, if the <code title="attr-srouce-media">media</code> attribute is omitted, is
+  "<code title="">all</code>", meaning that by default styles apply to
+  all media.<div class="impl">
 
   <p>If a <code><a href="#the-source-element">source</a></code> element is inserted as a child of a
   <a href="#media-element">media element</a> that has no <code title="attr-media-src"><a href="#attr-media-src">src</a></code> attribute and that is <a href="#in-a-document">in a
@@ -19300,10 +19314,10 @@
      that the user agent knows it cannot render</a>, then end the
      <a href="#synchronous-section">synchronous section</a>, and jump down to the <i title="">failed</i> step below.</li>
 
-     <li><p>&#8987; If <var title="">candidate</var> has a <code title="attr-source-media"><a href="#attr-source-media">media</a></code> attribute whose value,
-     when processed according to the rules for <a href="#mq">media
-     queries</a>, does not match the current environment, then end the
-     <a href="#synchronous-section">synchronous section</a>, and jump down to the <i title="">failed</i> step below. <a href="#refsMQ">[MQ]</a></li>
+     <li><p>&#8987; If <var title="">candidate</var> has a <code title="attr-source-media"><a href="#attr-source-media">media</a></code> attribute whose value does
+     not <a href="#matches-the-environment" title="matches the environment">match the
+     environment</a> of the <a href="#default-view">default view</a>, then end the
+     <a href="#synchronous-section">synchronous section</a>, and jump down to the <i title="">failed</i> step below.</li>
 
      <li><p>End the <a href="#synchronous-section">synchronous section</a>, continuing the
      remaining steps asynchronously.</li>
@@ -49717,9 +49731,9 @@
   document has no particular relationship with the destination
   resource other than there being a hyperlink between the two.<p>The <dfn id="attr-hyperlink-media" title="attr-hyperlink-media"><code>media</code></dfn>
   attribute describes for which media the target document was
-  designed. It is purely advisory. The value must be a valid <a href="#mq">media query</a>. <a href="#refsMQ">[MQ]</a> The default,
-  if the <code title="attr-hyperlink-media"><a href="#attr-hyperlink-media">media</a></code> attribute is
-  omitted, is <code>all</code>.<p>The <dfn id="attr-hyperlink-hreflang" title="attr-hyperlink-hreflang"><code>hreflang</code></dfn>
+  designed. It is purely advisory. The value must be a <a href="#valid-media-query">valid
+  media query</a>. The default, if the <code title="attr-hyperlink-media"><a href="#attr-hyperlink-media">media</a></code> attribute is omitted, is
+  "<code title="">all</code>".<p>The <dfn id="attr-hyperlink-hreflang" title="attr-hyperlink-hreflang"><code>hreflang</code></dfn>
   attribute on hyperlink elements, if present, gives the language of
   the linked resource. It is purely advisory. The value must be a
   valid BCP 47 language code. <a href="#refsBCP47">[BCP47]</a>

Received on Monday, 21 September 2009 09:59:13 UTC