spec/Overview.html 1.1726 2555 Clarify that HTML doesn't override CSS.

Clarify that HTML doesn't override CSS. (credit: db) (whatwg r2555)

The default, if the media attribute is omitted, is all, meaning that by default links apply to all media.
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1726.html#default-media
media
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1726.html#attr-style-media
hreflang
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1726.html#attr-link-hreflang
The default, if the media attribute is omitted, is all, meaning that by default styles apply to all media.
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1726.html#style-default-media
scoped
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1726.html#attr-style-scoped
media
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1726.html#attr-link-media
hyperlink links
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1726.html#hyperlink-link

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1725&r2=1.1726&f=h
http://html5.org/tools/web-apps-tracker?from=2554&to=2555

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1725
retrieving revision 1.1726
diff -u -d -r1.1725 -r1.1726
--- Overview.html 24 Dec 2008 02:13:46 -0000 1.1725
+++ Overview.html 24 Dec 2008 07:01:44 -0000 1.1726
@@ -6913,7 +6913,10 @@
   hyperlinks); exactly which and how many links are created depends on
   the keywords given in the <code title=attr-link-rel><a href=#attr-link-rel>rel</a></code>
   attribute. User agents must process the links on a per-link basis,
-  not a per-element basis.<p>The exact behavior for links to external resources depends on the
+  not a per-element basis.<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>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
   applied (as defined below). For external resources that are
@@ -6956,9 +6959,13 @@
   question was designed.<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 id=default-media>The default, if the <code title=attr-link-media><a href=#attr-link-media>media</a></code> attribute is omitted, is
+  <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>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
@@ -7601,8 +7608,13 @@
   with unknown parameters must be assumed to be unsupported.<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=#references>[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=#references>[DOM3VIEWS]</a><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
+  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>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 the attribute is

Received on Wednesday, 24 December 2008 07:05:10 UTC