[prev in list] [next in list] [prev in thread] [next in thread] 

List:       html5-commit-watchers
Subject:    [html5] r5781 - [giow] (0) Define how <style scoped> affects
From:       whatwg () whatwg ! org
Date:       2011-01-12 19:45:53
Message-ID: 20110112194553.C0DF6805819C () ps20323 ! dreamhostps ! com
[Download RAW message or body]

Author: ianh
Date: 2011-01-12 11:45:52 -0800 (Wed, 12 Jan 2011)
New Revision: 5781

Modified:
   complete.html
   index
   source
Log:
[giow] (0) Define how <style scoped> affects @rules.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=11149

Modified: complete.html
===================================================================
--- complete.html	2011-01-12 19:19:20 UTC (rev 5780)
+++ complete.html	2011-01-12 19:45:52 UTC (rev 5781)
@@ -14415,6 +14415,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

Modified: index
===================================================================
--- index	2011-01-12 19:19:20 UTC (rev 5780)
+++ index	2011-01-12 19:45:52 UTC (rev 5781)
@@ -14394,6 +14394,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

Modified: source
===================================================================
--- source	2011-01-12 19:19:20 UTC (rev 5780)
+++ source	2011-01-12 19:45:52 UTC (rev 5781)
@@ -15261,6 +15261,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>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>
+
   </div>
 
   <p id="title-on-style">The <dfn

_______________________________________________
Commit-Watchers mailing list
Commit-Watchers@lists.whatwg.org
http://lists.whatwg.org/listinfo.cgi/commit-watchers-whatwg.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic