Skip to content

Commit d6f12d2

Browse files
committed
[css-cascade-3] Remove scoped styles. Fixes #637.
1 parent b9caa91 commit d6f12d2

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

css-cascade-3/Overview.bs

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ Importing Style Sheets: the ''@import'' rule</h2>
6060
<p class='example'>
6161
For example, declarations in style rules from imported stylesheets interact with the cascade
6262
as if they were written literally into the stylesheet at the point of the ''@import''.
63-
Similarly, style rules in a stylesheet imported into a scoped stylesheet
64-
are scoped in the same way.
6563

6664
Any ''@import'' rules must precede all other at-rules and style rules in a style sheet
6765
(besides ''@charset'', which must be the first thing in the style sheet if it exists),
@@ -592,33 +590,6 @@ Cascading</h2>
592590

593591
Declarations from <a>origins</a> earlier in this list win over declarations from later <a>origins</a>.
594592

595-
<dt id='cascade-scope'>Scope
596-
<dd>
597-
A declaration can be <dfn export>scoped</dfn> to a subtree of the document
598-
so that it only affects its <dfn export>scoping element</dfn> and that element's descendants.
599-
For example, [[HTML5]] defines scoped <code>&lt;style&gt;</code> elements,
600-
whose style sheets are scoped to the element's parent.
601-
602-
If the <a>scoping elements</a> of two declarations
603-
have an ancestor/descendant relationship,
604-
then for normal rules the declaration whose <a>scoping element</a> is the descendant wins,
605-
and for important rules the declaration whose <a>scoping element</a> is the ancestor wins.
606-
607-
Note: In other words, for normal declarations the inner scope's declarations override,
608-
but for ''!important'' rules <em>outer</em> scope's override.
609-
610-
For the purpose of this step,
611-
all unscoped declarations are considered to be <a>scoped</a> to the root element.
612-
Normal declarations from style attributes
613-
are considered to be <a>scoped</a> to the element with the attribute,
614-
whereas important declarations from style attributes
615-
are considered to be <a>scoped</a> to the root element.
616-
[[!CSSSTYLEATTR]]
617-
618-
Note: This odd handling of ''!important'' style attribute declarations
619-
is to match the behavior defined in CSS Levels 1 and 2,
620-
where style attributes simply have higher specificity than any other author rules. [[CSS21]]
621-
622593
<dt id='cascade-specificity'>Specificity
623594
<dd>
624595
The <a href="https://www.w3.org/TR/selectors/#specificity">Selectors module</a> [[!SELECT]] describes how to compute the specificity of a selector.
@@ -896,7 +867,7 @@ Additions to Level 2</h3>
896867
<ul>
897868
<li>The 'all' shorthand
898869
<li>The ''unset'' keyword
899-
<li>Incorporation of scoped styles, animations, and transitions into the <a>cascade</a>.
870+
<li>Incorporation of animations and transitions into the <a>cascade</a>.
900871
</ul>
901872

902873
<h2 class="no-num" id="acknowledgments">Acknowledgments</h2>

0 commit comments

Comments
 (0)