W3C home > Mailing lists > Public > public-html-commits@w3.org > January 2011

html5/spec Overview.html,1.4643,1.4644

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 12 Jan 2011 19:46:02 +0000
To: public-html-commits@w3.org
Message-Id: <E1Pd6du-0002EW-OU@lionel-hutz.w3.org>
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv8568

Modified Files:
	Overview.html 
Log Message:
Define how <style scoped> affects @rules. (whatwg r5781)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4643
retrieving revision 1.4644
diff -u -d -r1.4643 -r1.4644
--- Overview.html	12 Jan 2011 19:19:25 -0000	1.4643
+++ Overview.html	12 Jan 2011 19:45:58 -0000	1.4644
@@ -12455,6 +12455,18 @@
   (if any), and that element's child nodes. Otherwise, the specified
   styles must, if applied, be applied to the entire document.</p>
 
+  <p>For scoped CSS resources, the effect of @-rules must be scoped to
+  the scoped sheet and its subresources, even if the @-rule in
+  question would ordinarily apply to all style sheets that affect the
+  <code><a href="#document">Document</a></code>. Any '@page' rules in scoped CSS resources
+  must be ignored.</p>
+
+  <p class="example">For example, an '@font-face' rule defined in a
+  scoped style sheet would only define the font for the purposes of
+  font rules in the scoped section; style sheets outside the scoped
+  section using the same font name would not end up using that
+  embedded font.</p>
+
   </div><p id="title-on-style">The <dfn id="attr-style-title" title="attr-style-title"><code>title</code></dfn> attribute on
   <code><a href="#the-style-element">style</a></code> elements defines <span>alternative style sheet
   sets</span>. If the <code><a href="#the-style-element">style</a></code> element has no <code title="attr-style-title"><a href="#attr-style-title">title</a></code> attribute, then it has no
Received on Wednesday, 12 January 2011 19:46:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 12 January 2011 19:46:06 GMT