+1
-30
lines changedFilter options
+1
-30
lines changed Original file line number Diff line number Diff line change
@@ -60,8 +60,6 @@ Importing Style Sheets: the ''@import'' rule</h2>
60
60
<p class='example'>
61
61
For example, declarations in style rules from imported stylesheets interact with the cascade
62
62
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.
65
63
66
64
Any ''@import'' rules must precede all other at-rules and style rules in a style sheet
67
65
(besides ''@charset'', which must be the first thing in the style sheet if it exists),
@@ -592,33 +590,6 @@ Cascading</h2>
592
590
593
591
Declarations from <a>origins</a> earlier in this list win over declarations from later <a>origins</a>.
594
592
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><style></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
-
622
593
<dt id='cascade-specificity'>Specificity
623
594
<dd>
624
595
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>
896
867
<ul>
897
868
<li>The 'all' shorthand
898
869
<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>.
900
871
</ul>
901
872
902
873
<h2 class="no-num" id="acknowledgments">Acknowledgments</h2>
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4