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

hixie: Define how <style scoped> affects @rules. (whatwg r5781)

From: poot <cvsmail@w3.org>
Date: Wed, 12 Jan 2011 14:47:14 -0500
To: public-html-diffs@w3.org
Message-Id: <E1Pd6f4-0007rY-FU@jay.w3.org>
hixie: Define how <style scoped> affects @rules. (whatwg r5781)


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:47:16 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:09:13 UTC