@@ -141,9 +141,9 @@ Importing Style Sheets: the ''@import'' rule</h2>
141
141
<div class="example">
142
142
The following <a href="#conditional-import">conditional <css>@import</css> rule</a>
143
143
only loads the style sheet when the UA
144
- <a href="https://www.w3.org/TR/css3 -conditional/#support-definition">supports</a> ''display: flex'' ,
144
+ <a href="https://www.w3.org/TR/css -conditional-3 /#support-definition">supports</a> ''display: flex'' ,
145
145
and only applies the style sheet on a <a href="https://www.w3.org/TR/CSS2/media.html#media-types">handheld</a> device
146
- with a <a href="https://www.w3.org/TR/css3- mediaqueries/#width">maximum viewport width</a> of 400px.
146
+ with a <a href="https://www.w3.org/TR/mediaqueries-4 /#width">maximum viewport width</a> of 400px.
147
147
148
148
<pre> @import url("narrow.css") supports(display: flex) handheld and (max-width: 400px);</pre>
149
149
</div>
@@ -219,8 +219,8 @@ Conditional ''@import'' Rules</h3>
219
219
</div>
220
220
221
221
The evaluation and full syntax of the <a>import conditions</a>
222
- are defined by the <a href="https://www.w3.org/TR/css3- mediaqueries/">Media Queries</a> [[!MEDIAQ]]
223
- and <a href="https://www.w3.org/TR/css-conditional/">CSS Conditional Rules</a> [[!CSS3 -CONDITIONAL]] specifications.
222
+ are defined by the <a href="https://www.w3.org/TR/mediaqueries/">Media Queries</a> [[!MEDIAQ]]
223
+ and <a href="https://www.w3.org/TR/css-conditional/">CSS Conditional Rules</a> [[!CSS -CONDITIONAL-3 ]] specifications.
224
224
225
225
<h3 id=import-processing>
226
226
Processing Stylesheet Imports</h3>
@@ -328,7 +328,7 @@ Shorthand Properties</h2>
328
328
to its initial value of ''border-image/none'' ,
329
329
but has no syntax to set it to anything else. [[css-backgrounds-3]] </span>
330
330
331
- If a <a>shorthand</a> is specified as one of the <a href="https://www.w3.org/TR/css3 -values/#common-keywords">CSS-wide keywords</a> [[!css-values-3]] ,
331
+ If a <a>shorthand</a> is specified as one of the <a href="https://www.w3.org/TR/css -values/#common-keywords">CSS-wide keywords</a> [[!css-values-3]] ,
332
332
it sets all of its <a>sub-properties</a> to that keyword,
333
333
including any that are <a>reset-only sub-properties</a> .
334
334
(Note that these keywords cannot be combined with other values in a single declaration, not even in a shorthand.)
@@ -404,12 +404,12 @@ Resetting All Properties: the 'all' property</h3>
404
404
The 'all' property is a <a>shorthand</a>
405
405
that resets <em> all</em> CSS properties
406
406
except 'direction' and 'unicode-bidi' .
407
- It only accepts the <a href="https://www.w3.org/TR/css3 -values/#common-keywords">CSS-wide keywords</a> .
407
+ It only accepts the <a href="https://www.w3.org/TR/css -values/#common-keywords">CSS-wide keywords</a> .
408
408
It does not reset <a>custom properties</a> [[css-variables-1]] .
409
409
410
410
Note: The excepted CSS properties 'direction' and 'unicode-bidi'
411
411
are actually markup-level features,
412
- and <a href="https://www.w3.org/TR/css3 -writing-modes/#text-direction">should not be set in the author's style sheet</a> .
412
+ and <a href="https://www.w3.org/TR/css -writing-modes-3 /#text-direction">should not be set in the author's style sheet</a> .
413
413
(They exist as CSS properties only to style document languages not supported by the UA.)
414
414
Authors should use the appropriate markup, such as HTML's <code> dir</code> attribute, instead.
415
415
[[css-writing-modes-3]]
@@ -500,7 +500,8 @@ Declared Values</h3>
500
500
<h3 id="cascaded">
501
501
Cascaded Values</h3>
502
502
503
- The <dfn export local-lt="cascaded">cascaded value</dfn> represents the result of <a href="#cascade">the cascade</a> :
503
+ The <dfn export local-lt="cascaded">cascaded value</dfn>
504
+ represents the result of <a href="#cascade">the cascade</a> :
504
505
it is the <a>declared value</a> that wins the cascade
505
506
(is sorted first in the <a>output of the cascade</a> ).
506
507
If the <a>output of the cascade</a> is an empty list,
@@ -509,7 +510,8 @@ Cascaded Values</h3>
509
510
<h3 id="specified">
510
511
Specified Values</h3>
511
512
512
- The <dfn export local-lt="specified">specified value</dfn> is the value of a given property that the style sheet authors intended for that element.
513
+ The <dfn export local-lt="specified">specified value</dfn> is
514
+ the value of a given property that the style sheet authors intended for that element.
513
515
It is the result of putting the <a>cascaded value</a> through the <a href="#defaulting">defaulting</a> processes,
514
516
guaranteeing that a <a>specified value</a> exists for every property on every element.
515
517
@@ -524,7 +526,8 @@ Specified Values</h3>
524
526
<h3 id="computed">
525
527
Computed Values</h3>
526
528
527
- The <dfn export local-lt="computed">computed value</dfn> is the result of resolving the <a>specified value</a>
529
+ The <dfn export local-lt="computed">computed value</dfn> is
530
+ the result of resolving the <a>specified value</a>
528
531
as defined in the “Computed Value” line of the property definition table,
529
532
generally absolutizing it in preparation for <a>inheritance</a> .
530
533
@@ -578,7 +581,8 @@ Computed Values</h3>
578
581
<h3 id='used'>
579
582
Used Values</h3>
580
583
581
- The <dfn export local-lt="used">used value</dfn> is the result of taking the <a>computed value</a>
584
+ The <dfn export local-lt="used">used value</dfn> is
585
+ the result of taking the <a>computed value</a>
582
586
and completing any remaining calculations to make it the absolute theoretical value
583
587
used in the formatting of the document.
584
588
@@ -654,7 +658,8 @@ Actual Values</h3>
654
658
and may therefore have to approximate the <a lt="used value">used</a> width.
655
659
Also, the font size of an element may need adjustment based on the availability of fonts
656
660
or the value of the 'font-size-adjust' property.</span>
657
- The <dfn export local-lt="actual">actual value</dfn> is the used value after any such adjustments have been made.
661
+ The <dfn export local-lt="actual">actual value</dfn> is
662
+ the used value after any such adjustments have been made.
658
663
659
664
Note: By probing the actual values of elements,
660
665
much can be learned about how the document is laid out.
@@ -805,7 +810,7 @@ Filtering</h2>
805
810
It belongs to a style sheet that currently applies to this document.
806
811
807
812
<li>
808
- It is not qualified by a conditional rule [[!CSS3 -CONDITIONAL]] with a false condition.
813
+ It is not qualified by a conditional rule [[!CSS -CONDITIONAL-3 ]] with a false condition.
809
814
810
815
<li>
811
816
It belongs to a style rule whose selector matches the element. [[!SELECT]]
@@ -893,34 +898,7 @@ Cascade Sorting Order</h3>
893
898
can set defaults that are easily overridden by the outer context,
894
899
while [=important=] declarations belonging to an [=encapsulation context=]
895
900
can enforce requirements that cannot be overridden by the outer context.
896
- <!--
897
- <dt id='cascade-scope'> Scope
898
- <dd>
899
- A declaration can be <dfn export>scoped</dfn> to a subtree of the document
900
- so that it only affects its <dfn export>scoping element</dfn> and that element's descendants.
901
- For example, [[HTML]] defines scoped <code> <style></code> elements,
902
- whose style sheets are scoped to the element's parent.
903
-
904
- If the <a>scoping elements</a> of two declarations
905
- have an ancestor/descendant relationship,
906
- then for [=normal=] rules the declaration whose <a>scoping element</a> is the descendant wins,
907
- and for [=important=] rules the declaration whose <a>scoping element</a> is the ancestor wins.
908
901
909
- Note: In other words, for [=normal=] declarations the inner scope's declarations override,
910
- but for ''!important'' rules <em> outer</em> scope's override.
911
-
912
- For the purpose of this step,
913
- all unscoped declarations are considered to be <a>scoped</a> to the root element.
914
- [=Normal=] declarations from style attributes
915
- are considered to be <a>scoped</a> to the element with the attribute,
916
- whereas important declarations from style attributes
917
- are considered to be <a>scoped</a> to the root element.
918
- [[!CSSSTYLEATTR]]
919
-
920
- Note: This odd handling of ''!important'' style attribute declarations
921
- is to match the behavior defined in CSS Levels 1 and 2,
922
- where style attributes simply have higher specificity than any other author rules. [[CSS2]]
923
- -->
924
902
<dt id='cascade-specificity'> Specificity
925
903
<dd>
926
904
The <a href="https://www.w3.org/TR/selectors/#specificity">Selectors module</a> [[!SELECT]] describes how to compute the specificity of a selector.
@@ -1160,7 +1138,7 @@ Explicit Defaulting</h3>
1160
1138
1161
1139
Several CSS-wide property values are defined below;
1162
1140
declaring a property to have these values explicitly specifies a particular defaulting behavior.
1163
- As specified in <a href="https://www.w3.org/TR/css3 -values/#common-keywords">CSS Values and Units Level 3 </a> [[!css-values-3]] ,
1141
+ As specified in <a href="https://www.w3.org/TR/css -values/#common-keywords">CSS Values and Units</a> [[!css-values-3]] ,
1164
1142
all CSS properties can accept these values.
1165
1143
1166
1144
<h4 id="initial">
@@ -1186,7 +1164,7 @@ Erasing All Declarations: the ''unset'' keyword</h4>
1186
1164
(or all longhands of a <a>shorthand</a> ).
1187
1165
1188
1166
<h4 id="default">
1189
- Rolling Back The Cascade: the ''revert'' keyword</h4>
1167
+ Rolling Back Cascade Origins : the ''revert'' keyword</h4>
1190
1168
1191
1169
If the <a>cascaded value</a> of a property is the <dfn for=all caniuse="css-revert-value">''revert''</dfn> keyword,
1192
1170
the behavior depends on the [=cascade origin=] to which the declaration belongs:
0 commit comments