Skip to content

Commit

Permalink
[css-cascade-4] Remove scoped styling from L4. w3c#5472
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasai committed Aug 10, 2020
1 parent b3fa940 commit 0086811
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions css-cascade-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ Importing Style Sheets: the ''@import'' rule</h2>
<p class='example'>
For example, declarations in style rules from imported stylesheets interact with the cascade
as if they were written literally into the stylesheet at the point of the ''@import''.
Similarly, style rules in a stylesheet imported into a scoped stylesheet
are scoped in the same way.

Any ''@import'' rules must precede all other at-rules and style rules in a style sheet
(besides ''@charset'', which must be the first thing in the style sheet if it exists),
Expand Down Expand Up @@ -728,7 +726,6 @@ Filtering</h2>

<li>
It belongs to a style rule whose selector matches the element. [[!SELECT]]
(Taking <a href="https://www.w3.org/TR/selectors4/#scoping">scoping</a> into account, if necessary.)

<li>
It is syntactically valid:
Expand Down Expand Up @@ -802,7 +799,7 @@ Cascade Order</h3>
the declaration in the outer context wins,
and for [=important=] rules
the declaration from the inner context wins.

<!--
<dt id='cascade-scope'>Scope
<dd>
A declaration can be <dfn export>scoped</dfn> to a subtree of the document
Expand All @@ -829,7 +826,7 @@ Cascade Order</h3>
Note: This odd handling of ''!important'' style attribute declarations
is to match the behavior defined in CSS Levels 1 and 2,
where style attributes simply have higher specificity than any other author rules. [[CSS2]]

-->
<dt id='cascade-specificity'>Specificity
<dd>
The <a href="https://www.w3.org/TR/selectors/#specificity">Selectors module</a> [[!SELECT]] describes how to compute the specificity of a selector.
Expand All @@ -840,7 +837,6 @@ Cascade Order</h3>
are considered to have a specificity higher than any selector.
The declaration with the highest specificity wins.


<dt id='cascade-order'>Order of Appearance
<dd>
The last declaration in document order wins.
Expand Down Expand Up @@ -1218,9 +1214,10 @@ Additions Since Level 3</h3>
* Introduced ''revert'' keyword, for rolling back the cascade.
* Introduced ''supports()'' syntax for supports-conditional ''@import'' rules.
* Defined the property two aliasing mechanisms CSS uses to support legacy syntaxes. See See [[#aliasing]].
<!--
* Added definition of how scoped styles would cascade
(deferred from Level 3)

-->

<h3 id="changes-2">
Additions Since Level 2</h3>
Expand Down

0 comments on commit 0086811

Please # to comment.