[html5] r7289 - [giow] (0) Make @font-face in <style scoped> make more sense Fixing https://www. [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon Aug 27 16:17:01 PDT 2012


Author: ianh
Date: 2012-08-27 16:16:59 -0700 (Mon, 27 Aug 2012)
New Revision: 7289

Modified:
   complete.html
   index
   source
Log:
[giow] (0) Make @font-face in <style scoped> make more sense
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=15821
Affected topics: HTML

Modified: complete.html
===================================================================
--- complete.html	2012-08-27 23:00:27 UTC (rev 7288)
+++ complete.html	2012-08-27 23:16:59 UTC (rev 7289)
@@ -16170,16 +16170,21 @@
   element's descendants.</p>
 
   <p>For scoped CSS resources, the effect of other @-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
+  scoped to either the scoped sheet and its subresources or to the
+  subtree rooted at the <code><a href=#the-style-element>style</a></code> element's parent (if any),
+  even if the @-rule in question would ordinarily apply to all style
+  sheets that affect the <code><a href=#document>Document</a></code>, or to all nodes in 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>
+  elements in the scoped section; the font would not be used for
+  elements outside the subtree. However, rules outside the subtree
+  that refer to font names declared in '@font-face' rules in a scoped
+  section, when those rules are inherited by nodes in the scoped
+  section, would end up referring to the fonts declared in that
+  section.</p>
 
   <hr></div>
 

Modified: index
===================================================================
--- index	2012-08-27 23:00:27 UTC (rev 7288)
+++ index	2012-08-27 23:16:59 UTC (rev 7289)
@@ -16170,16 +16170,21 @@
   element's descendants.</p>
 
   <p>For scoped CSS resources, the effect of other @-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
+  scoped to either the scoped sheet and its subresources or to the
+  subtree rooted at the <code><a href=#the-style-element>style</a></code> element's parent (if any),
+  even if the @-rule in question would ordinarily apply to all style
+  sheets that affect the <code><a href=#document>Document</a></code>, or to all nodes in 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>
+  elements in the scoped section; the font would not be used for
+  elements outside the subtree. However, rules outside the subtree
+  that refer to font names declared in '@font-face' rules in a scoped
+  section, when those rules are inherited by nodes in the scoped
+  section, would end up referring to the fonts declared in that
+  section.</p>
 
   <hr></div>
 

Modified: source
===================================================================
--- source	2012-08-27 23:00:27 UTC (rev 7288)
+++ source	2012-08-27 23:16:59 UTC (rev 7289)
@@ -17252,16 +17252,21 @@
   element's descendants.</p>
 
   <p>For scoped CSS resources, the effect of other @-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>Document</code>. Any '@page' rules in scoped CSS resources
+  scoped to either the scoped sheet and its subresources or to the
+  subtree rooted at the <code>style</code> element's parent (if any),
+  even if the @-rule in question would ordinarily apply to all style
+  sheets that affect the <code>Document</code>, or to all nodes in the
+  <code>Document</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>
+  elements in the scoped section; the font would not be used for
+  elements outside the subtree. However, rules outside the subtree
+  that refer to font names declared in '@font-face' rules in a scoped
+  section, when those rules are inherited by nodes in the scoped
+  section, would end up referring to the fonts declared in that
+  section.</p>
 
   <hr>
 




More information about the Commit-Watchers mailing list