[html5] r2555 - [e] (0) Clarify that HTML doesn't override CSS. (credit: db)

whatwg at whatwg.org whatwg at whatwg.org
Tue Dec 23 23:01:39 PST 2008


Author: ianh
Date: 2008-12-23 23:01:38 -0800 (Tue, 23 Dec 2008)
New Revision: 2555

Modified:
   index
   source
Log:
[e] (0) Clarify that HTML doesn't override CSS. (credit: db)

Modified: index
===================================================================
--- index	2008-12-24 02:13:41 UTC (rev 2554)
+++ index	2008-12-24 07:01:38 UTC (rev 2555)
@@ -8441,6 +8441,11 @@
   attribute. User agents must process the links on a per-link basis,
   not a per-element basis.</p>
 
+  <p class=note>Each link is handled separately. For instance, if
+  there are two <code><a href=#the-link-element>link</a></code> elements with <code title="">rel="stylesheet"</code>, they each count as a separate
+  external resource, and each is affected by its own attributes
+  independently.</p>
+
   <p>The exact behavior for links to external resources depends on the
   exact relationship, as defined for the relevant link type. Some of
   the attributes control whether or not the external resource is to be
@@ -8498,10 +8503,16 @@
   <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
-  <span>views</span><!-- XXX xref --> while their state match the
-  listed media and the other relevant conditions apply, and must not
-  apply them otherwise.</p>
+  <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 -->
 
+  <p class=note>The external resource might have further
+  restrictions defined within that limit its applicability. For
+  example, a CSS style sheet might have some <code title="">@media</code> blocks. This specification does not override
+  such further restrictions or requirements.</p><!-- note similar text
+  in <style> section -->
+
   <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
   media.</p>
@@ -9267,9 +9278,16 @@
   <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> User
-  agents must apply the styles to <span>views</span> while their state
-  match the listed media, and must not apply them otherwise. <a href=#refsDOM3VIEWS>[DOM3VIEWS]</a></p>
+  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.</p><!-- note similar text in <link> section -->
 
+  <p class=note>The styles might be further limited in scope,
+  e.g. in CSS with the use of <code title="">@media</code>
+  blocks. This specification does not override such further
+  restrictions or requirements.</p><!-- note similar text in <link>
+  section -->
+
   <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>

Modified: source
===================================================================
--- source	2008-12-24 02:13:41 UTC (rev 2554)
+++ source	2008-12-24 07:01:38 UTC (rev 2555)
@@ -8752,6 +8752,12 @@
   attribute. User agents must process the links on a per-link basis,
   not a per-element basis.</p>
 
+  <p class="note">Each link is handled separately. For instance, if
+  there are two <code>link</code> elements with <code
+  title="">rel="stylesheet"</code>, they each count as a separate
+  external resource, and each is affected by its own attributes
+  independently.</p>
+
   <p>The exact behavior for links to external resources depends on the
   exact relationship, as defined for the relevant link type. Some of
   the attributes control whether or not the external resource is to be
@@ -8821,10 +8827,17 @@
   <p>However, if the link is an <span>external resource link</span>,
   then the <code title="attr-link-media">media</code> attribute is
   prescriptive. The user agent must apply the external resource to
-  <span>views</span><!-- XXX xref --> while their state match the
-  listed media and the other relevant conditions apply, and must not
-  apply them otherwise.</p>
+  <span title="view">views</span> 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 -->
 
+  <p class="note">The external resource might have further
+  restrictions defined within that limit its applicability. For
+  example, a CSS style sheet might have some <code
+  title="">@media</code> blocks. This specification does not override
+  such further restrictions or requirements.</p><!-- note similar text
+  in <style> section -->
+
   <p id="default-media">The default, if the <code
   title="attr-link-media">media</code> attribute is omitted, is
   <code>all</code>, meaning that by default links apply to all
@@ -9721,10 +9734,16 @@
   <p>The <dfn 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> User
-  agents must apply the styles to <span>views</span> while their state
-  match the listed media, and must not apply them otherwise. <a
-  href="#refsDOM3VIEWS">[DOM3VIEWS]</a></p>
+  agents must apply the styles to <span title="view">views</span>
+  while their state match the listed media, and must not apply them
+  otherwise.</p><!-- note similar text in <link> section -->
 
+  <p class="note">The styles might be further limited in scope,
+  e.g. in CSS with the use of <code title="">@media</code>
+  blocks. This specification does not override such further
+  restrictions or requirements.</p><!-- note similar text in <link>
+  section -->
+
   <p id="style-default-media">The default, if the <code
   title="attr-style-media">media</code> attribute is omitted, is
   <code>all</code>, meaning that by default styles apply to all




More information about the Commit-Watchers mailing list