Skip to content

Commit

Permalink
[giow] (0) Define how <style scoped> affects @rules.
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=11149

git-svn-id: http://svn.whatwg.org/webapps@5781 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 12, 2011
1 parent 7ee91fc commit a496432
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
12 changes: 12 additions & 0 deletions complete.html
Expand Up @@ -14415,6 +14415,18 @@ <h4 id=the-style-element><span class=secno>4.2.6 </span>The <dfn><code>style</co
(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
Expand Down
12 changes: 12 additions & 0 deletions index
Expand Up @@ -14394,6 +14394,18 @@ people expect to have work and what is necessary.
(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
Expand Down
12 changes: 12 additions & 0 deletions source
Expand Up @@ -15261,6 +15261,18 @@ people expect to have work and what is necessary.
(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
Expand Down

0 comments on commit a496432

Please sign in to comment.