Skip to content

Commit 7e1eab7

Browse files
committed
[css-cascade] Squash gratuitous editorial / markup differences between L3 & L4.
1 parent 7eed41a commit 7e1eab7

2 files changed

Lines changed: 90 additions & 14 deletions

File tree

css-cascade-3/Overview.bs

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Previous Version: https://www.w3.org/TR/2005/WD-css3-cascade-20051215/
1818
Issue Tracking: Disposition of Comments https://drafts.csswg.org/css-cascade/issues
1919
Abstract: This CSS module describes how to collate style rules and assign values to all properties on all elements. By way of cascading and inheritance, values are propagated for all properties on all elements.
2020
Ignored Terms: auto, flex items
21+
Include Can I Use Panels: yes
2122
</pre>
2223

2324
<pre class=link-defaults>
@@ -115,17 +116,15 @@ Importing Style Sheets: the ''@import'' rule</h2>
115116
</pre>
116117
</div>
117118

119+
<h3 id=conditional-import>
120+
Conditional ''@import'' Rules</h3>
121+
118122
The <a>import conditions</a> allow the import to be media-dependent.
119123
In the absence of any <a>import conditions</a>, the import is unconditional.
120124
(Specifying ''@media/all'' for the <<media-query-list>> has the same effect.)
121-
122-
The evaluation and full syntax of the expressions after the URL
123-
is defined by the <a href="https://www.w3.org/TR/css3-mediaqueries/">Media Queries</a> specification [[!MEDIAQ]].
124-
If the media query does not match,
125+
If the <a>import conditions</a> do not match,
125126
the rules in the imported stylesheet do not apply,
126127
exactly as if the imported stylesheet were wrapped in an ''@media'' block with the given media query.
127-
User agents may therefore avoid fetching a media-dependent import
128-
as long as the media query does not match.
129128

130129
<div class=example>
131130
The following rules illustrate how ''@import'' rules can be made media-dependent:
@@ -137,6 +136,12 @@ Importing Style Sheets: the ''@import'' rule</h2>
137136
</pre>
138137
</div>
139138

139+
User agents may therefore avoid fetching a media-dependent import
140+
as long as the media query does not match.
141+
142+
The evaluation and full syntax of the <a>import conditions</a>
143+
is defined by the <a href="https://www.w3.org/TR/css3-mediaqueries/">Media Queries</a> specification [[!MEDIAQ]].
144+
140145
When the same style sheet is imported or linked to a document in multiple places,
141146
user agents must process (or act as though they do) each link
142147
as though the link were to an independent style sheet.
@@ -246,7 +251,7 @@ Shorthand Properties</h2>
246251
is equivalent to declaring all of its <a>sub-properties</a> to be ''!important''.
247252

248253

249-
<h3 id="all-shorthand">
254+
<h3 id="all-shorthand" caniuse="css-all">
250255
Resetting All Properties: the 'all' property</h3>
251256

252257
<pre class="propdef shorthand">
@@ -702,7 +707,7 @@ Cascading</h2>
702707
<h3 id='cascading-origins'>
703708
Cascading Origins</h3>
704709

705-
Each style rule has a <dfn id=origin local-lt=origin export>cascade origin</dfn>,
710+
Each style rule has a <dfn id=origin export local-lt=origin>cascade origin</dfn>,
706711
which determines where it enters the cascade.
707712
CSS defines three core <a>origins</a>:
708713

@@ -900,18 +905,19 @@ Explicit Defaulting</h3>
900905
<h4 id="initial">
901906
Resetting a Property: the ''initial'' keyword</h4>
902907

903-
If the <a>cascaded value</a> is the <dfn for=all>''initial''</dfn> keyword,
908+
If the <a>cascaded value</a> of a property is the <dfn for=all caniuse="css-initial-value">''initial''</dfn> keyword,
904909
the property's <a>specified value</a> is its <a>initial value</a>.
905910

906911
<h4 id="inherit">
907912
Explicit Inheritance: the ''inherit'' keyword</h4>
908913

909914
If the <a>cascaded value</a> of a property is the <dfn for=all>''inherit''</dfn> keyword,
910915
the property's <a lt="specified value">specified</a> and <a>computed values</a> are the <a>inherited value</a>.
916+
911917
<h4 id="inherit-initial">
912918
Erasing All Declarations: the ''unset'' keyword</h4>
913919

914-
If the <a>cascaded value</a> of a property is the <dfn for=all>''unset''</dfn> keyword,
920+
If the <a>cascaded value</a> of a property is the <dfn for=all caniuse="css-unset-value">''unset''</dfn> keyword,
915921
then if it is an inherited property, this is treated as ''inherit'',
916922
and if it is not, this is treated as ''initial''.
917923
This keyword effectively erases all <a>declared values</a> occurring earlier in the <a>cascade</a>,
@@ -1033,7 +1039,7 @@ Additions Since Level 2</h3>
10331039
<li>Incorporation of animations and transitions into the <a>cascade</a>.
10341040
</ul>
10351041

1036-
<h2 class="no-num" id="acknowledgments">Acknowledgments</h2>
1042+
<h2 class=no-num id="acknowledgments">Acknowledgments</h2>
10371043

10381044
David Baron, Simon Sapin, and Boris Zbarsky contributed to this specification.
10391045

css-cascade-4/Overview.bs

Lines changed: 73 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ Include Can I Use Panels: yes
2727
spec:css-values; type:value; text:ex
2828
</pre>
2929

30-
3130
<h2 id="intro">
3231
Introduction</h2>
3332

@@ -65,6 +64,16 @@ Module Interactions</h3>
6564
since they cannot be targetted by selectors
6665
all of their computed values are assigned by <a href="#defaulting">defaulting</a>.
6766

67+
<!--
68+
███████ ████ ██ ██ ████████ ███████ ████████ ████████
69+
██ ██ ██ ███ ███ ██ ██ ██ ██ ██ ██ ██
70+
██ ███ ██ ██ ████ ████ ██ ██ ██ ██ ██ ██ ██
71+
██ ███ ██ ██ ██ ███ ██ ████████ ██ ██ ████████ ██
72+
██ █████ ██ ██ ██ ██ ██ ██ ██ ██ ██
73+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██
74+
███████ ████ ██ ██ ██ ███████ ██ ██ ██
75+
-->
76+
6877
<h2 id="at-import">
6978
Importing Style Sheets: the ''@import'' rule</h2>
7079

@@ -220,6 +229,16 @@ Content-Type of CSS Style Sheets</h3>
220229
Otherwise, it must be interpreted as a network error.
221230

222231

232+
<!--
233+
██████ ██ ██ ███████ ████████ ████████ ██ ██ ███ ██ ██ ████████
234+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ███ ██ ██ ██
235+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ████ ██ ██ ██
236+
██████ █████████ ██ ██ ████████ ██ █████████ ██ ██ ██ ██ ██ ██ ██
237+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ █████████ ██ ████ ██ ██
238+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ███ ██ ██
239+
██████ ██ ██ ███████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ████████
240+
-->
241+
223242
<h2 id='shorthand'>
224243
Shorthand Properties</h2>
225244

@@ -379,6 +398,17 @@ Resetting All Properties: the 'all' property</h3>
379398
will also be blown away.
380399
</div>
381400

401+
402+
<!--
403+
██████ ████████ ███ ██████ ████████ ██████
404+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██
405+
██ ██ ██ ██ ██ ██ ██
406+
██████ ██ ██ ██ ██ ████ ██████ ██████
407+
██ ██ █████████ ██ ██ ██ ██
408+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██
409+
██████ ██ ██ ██ ██████ ████████ ██████
410+
-->
411+
382412
<h2 id="value-stages">
383413
Value Processing</h2>
384414

@@ -672,6 +702,15 @@ Examples</h3>
672702
</table>
673703

674704

705+
<!--
706+
████████ ████ ██ ████████ ████████ ████████ ████ ██ ██ ██████
707+
██ ██ ██ ██ ██ ██ ██ ██ ███ ██ ██ ██
708+
██ ██ ██ ██ ██ ██ ██ ██ ████ ██ ██
709+
██████ ██ ██ ██ ██████ ████████ ██ ██ ██ ██ ██ ████
710+
██ ██ ██ ██ ██ ██ ██ ██ ██ ████ ██ ██
711+
██ ██ ██ ██ ██ ██ ██ ██ ██ ███ ██ ██
712+
██ ████ ████████ ██ ████████ ██ ██ ████ ██ ██ ██████
713+
-->
675714

676715
<h2 id='filtering'>
677716
Filtering</h2>
@@ -705,6 +744,16 @@ Filtering</h2>
705744
prioritizes these lists.
706745

707746

747+
<!--
748+
██████ ███ ██████ ██████ ███ ████████ ████████
749+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
750+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██
751+
██ ██ ██ ██████ ██ ██ ██ ██ ██ ██████
752+
██ █████████ ██ ██ █████████ ██ ██ ██
753+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
754+
██████ ██ ██ ██████ ██████ ██ ██ ████████ ████████
755+
-->
756+
708757
<h2 id='cascading'>
709758
Cascading</h2>
710759

@@ -799,7 +848,7 @@ Cascading</h2>
799848
<h3 id='cascading-origins'>
800849
Cascading Origins</h3>
801850

802-
Each style rule has a <dfn id="origin" export local-lt="origin">cascade origin</dfn>,
851+
Each style rule has a <dfn id=origin export local-lt="origin">cascade origin</dfn>,
803852
which determines where it enters the cascade.
804853
CSS defines three core <a>origins</a>:
805854

@@ -934,6 +983,16 @@ Precedence of Non-CSS Presentational Hints</h3>
934983
Host languages should choose the appropriate level for presentational hints with these considerations in mind.
935984

936985

986+
<!--
987+
████████ ████████ ████████ ███ ██ ██ ██ ████████
988+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██
989+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██
990+
██ ██ ██████ ██████ ██ ██ ██ ██ ██ ██
991+
██ ██ ██ ██ █████████ ██ ██ ██ ██
992+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██
993+
████████ ████████ ██ ██ ██ ███████ ████████ ██
994+
-->
995+
937996
<h2 id="defaulting">
938997
Defaulting</h2>
939998

@@ -1029,6 +1088,17 @@ Rolling Back The Cascade: the ''revert'' keyword</h4>
10291088
For the purpose of ''revert'', this origin includes the Animation <a>origin</a>.
10301089
</dl>
10311090

1091+
1092+
<!--
1093+
████████ ████████ ██████
1094+
██ ██ ██ ██
1095+
██ ██ ██
1096+
██████ ██ ██
1097+
██ ██ ██
1098+
██ ██ ██ ██
1099+
████████ ██ ██████
1100+
-->
1101+
10321102
<h2 id="changes">
10331103
Changes</h2>
10341104

@@ -1151,7 +1221,7 @@ Additions Since Level 2</h3>
11511221

11521222
David Baron, Tantek Çelik, Simon Sapin, and Boris Zbarsky contributed to this specification.
11531223

1154-
<h2 id=priv-sec>
1224+
<h2 class=no-num id=priv-sec>
11551225
Privacy and Security Considerations</h2>
11561226

11571227
* The cascade process does not distinguish between same-origin and cross-origin stylesheets,

0 commit comments

Comments
 (0)