W3C home > Mailing lists > Public > public-html-commits@w3.org > December 2008

html5/spec Overview.html,1.1725,1.1726

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 24 Dec 2008 07:01:47 +0000
To: public-html-commits@w3.org
Message-Id: <E1LFNkZ-0002kP-GA@lionel-hutz.w3.org>

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

Modified Files:
	Overview.html 
Log Message:
Clarify that HTML doesn't override CSS. (credit: db) (whatwg r2555)

Index: Overview.html
===================================================================
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:01:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 24 December 2008 07:01:57 GMT