@@ -89,14 +89,14 @@ Introduction</h2>
89
89
90
90
One of the fundamental design principles of CSS is <a lt="cascade">cascading</a> ,
91
91
which allows several style sheets to influence the presentation of a document.
92
- When different declarations try to set a value for the same element/property combination,
92
+ When different [= declarations=] try to set a value for the same element/property combination,
93
93
the conflicts must somehow be resolved.
94
94
95
- The opposite problem arises when no declarations try to set a value for an element/property combination.
95
+ The opposite problem arises when no [= declarations=] try to set a value for an element/property combination.
96
96
In this case, a value is be found by way of <a>inheritance</a>
97
97
or by looking at the property's <a>initial value</a> .
98
98
99
- The <a href="#cascade">cascading</a> and <a href="#defaulting">defaulting</a> process takes a set of declarations as input,
99
+ The <a href="#cascade">cascading</a> and <a href="#defaulting">defaulting</a> process takes a set of [= declarations=] as input,
100
100
and outputs a <a>specified value</a> for each property on each element.
101
101
102
102
The rules for finding the specified value for all properties on all elements in the document are described in this specification.
@@ -151,7 +151,7 @@ Importing Style Sheets: the ''@import'' rule</h2>
151
151
it only applies between constructs in the same stylesheet.
152
152
153
153
<p class='example'>
154
- For example, declarations in style rules from imported stylesheets interact with the cascade
154
+ For example, [= declarations=] in style rules from imported stylesheets interact with the cascade
155
155
as if they were written literally into the stylesheet at the point of the ''@import'' .
156
156
157
157
Any ''@import'' rules must precede all other valid at-rules and style rules in a style sheet
@@ -353,14 +353,14 @@ Shorthand Properties</h2>
353
353
each “missing” <a>sub-property</a> is assigned its <a>initial value</a> .
354
354
355
355
<div class='note'>
356
- This means that a <a>shorthand</a> property declaration always sets <em> all</em> of its <a>sub-properties</a> ,
356
+ This means that a <a>shorthand</a> [= property declaration=] always sets <em> all</em> of its <a>sub-properties</a> ,
357
357
even those that are not explicitly set.
358
358
Carelessly used, this might result in inadvertently resetting some <a>sub-properties</a> .
359
359
Carefully used, a <a>shorthand</a> can guarantee a “blank slate”
360
360
by resetting <a>sub-properties</a> inadvertently cascaded from other sources.
361
361
362
362
For example, writing ''background: green'' rather than ''background-color: green''
363
- ensures that the background color overrides any earlier declarations
363
+ ensures that the background color overrides any earlier [= declarations=]
364
364
that might have set the background to an image with 'background-image' .
365
365
</div>
366
366
@@ -404,7 +404,7 @@ Shorthand Properties</h2>
404
404
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]] ,
405
405
it sets all of its <a>sub-properties</a> to that keyword,
406
406
including any that are <a>reset-only sub-properties</a> .
407
- (Note that these keywords cannot be combined with other values in a single declaration, not even in a shorthand.)
407
+ (Note that these keywords cannot be combined with other values in a single [= declaration=] , not even in a shorthand.)
408
408
409
409
Declaring a <a>shorthand</a> property to be ''!important''
410
410
is equivalent to declaring all of its <a>sub-properties</a> to be ''!important'' .
@@ -556,13 +556,13 @@ Value Processing</h2>
556
556
or are not part of the document’s [=flattened element tree=]
557
557
do not participate in CSS value processing,
558
558
and do not have [=declared=] , [=cascaded=] , [=specified=] , [=computed=] , [=used=] , or [=actual=] values,
559
- even if they potentially have style declarations assigned to them
559
+ even if they potentially have style [= declarations=] assigned to them
560
560
(for example, by a <code> style</code> attribute).
561
561
562
562
<h3 id="declared">
563
563
Declared Values</h3>
564
564
565
- Each property declaration <a href="#filtering">applied to an element</a>
565
+ Each [= property declaration=] <a href="#filtering">applied to an element</a>
566
566
contributes a <dfn export local-lt="declared">declared value</dfn> for that property
567
567
associated with the element.
568
568
See <a href="#filtering">Filtering Declarations</a> for details.
@@ -884,7 +884,7 @@ Examples</h3>
884
884
Filtering</h2>
885
885
886
886
In order to find the <a>declared values</a> ,
887
- implementations must first identify all declarations that apply to each element.
887
+ implementations must first identify all [= declarations=] that apply to each element.
888
888
A declaration applies to an element if:
889
889
890
890
<ul>
@@ -904,7 +904,7 @@ Filtering</h2>
904
904
and the declaration's value matches the syntax for that property.
905
905
</ul>
906
906
907
- The values of the declarations that apply form,
907
+ The values of the [= declarations=] that apply form,
908
908
for each property on each element,
909
909
a list of <a>declared values</a> .
910
910
The next section,
@@ -928,19 +928,19 @@ Cascading</h2>
928
928
The <dfn export>cascade</dfn>
929
929
takes an unordered list of <a>declared values</a>
930
930
for a given property on a given element,
931
- sorts them by their declaration’s precedence as determined below,
931
+ sorts them by their [= declaration’s=] precedence as determined below,
932
932
and outputs a single <a>cascaded value</a> .
933
933
934
934
<h3 id="cascade-sort">
935
935
Cascade Sorting Order</h3>
936
936
937
- The cascade sorts declarations according to the following criteria,
937
+ The cascade sorts [= declarations=] according to the following criteria,
938
938
in descending order of precedence:
939
939
940
940
<dl>
941
941
<dt id='cascade-origin'> Origin and Importance
942
942
<dd>
943
- The <a>origin</a> of a declaration is based on where it comes from
943
+ The <a>origin</a> of a [= declaration=] is based on where it comes from
944
944
and its <a lt="important">importance</a> is
945
945
whether or not it is declared with ''!important''
946
946
(see [[#importance|below]] ).
@@ -961,7 +961,7 @@ Cascade Sorting Order</h3>
961
961
962
962
<dt id='cascade-context'> Context
963
963
<dd>
964
- A document language can provide for blending declarations sourced
964
+ A document language can provide for blending [= declarations=] sourced
965
965
from different <dfn local-lt="context">encapsulation contexts</dfn> ,
966
966
such as the nested [=tree contexts=] of [=shadow trees=] in the [[!DOM]] .
967
967
@@ -1063,10 +1063,10 @@ Important Declarations: the ''!important'' annotation</h3>
1063
1063
CSS attempts to create a balance of power between author and user style sheets.
1064
1064
By default, rules in an author's style sheet override those in a user's style sheet,
1065
1065
which override those in the user-agent's default style sheet.
1066
- To balance this, a declaration can be marked [=important=] ,
1066
+ To balance this, a [= declaration=] can be marked [=important=] ,
1067
1067
which increases its weight in the cascade and inverts the order of precedence.
1068
1068
1069
- A declaration is <dfn export local-lt="importance">important</dfn>
1069
+ A [= declaration=] is <dfn export local-lt="importance">important</dfn>
1070
1070
if it has a ''!important'' annotation as defined by [[css-syntax-3]] ,
1071
1071
i.e. if the last two (non-whitespace, non-comment) tokens
1072
1072
in its value are the delimiter token ''!'' followed by the identifier token ''important'' .
@@ -1259,7 +1259,7 @@ Rolling Back Cascade Origins: the ''revert'' keyword</h4>
1259
1259
1260
1260
If the <a>cascaded value</a> of a property is
1261
1261
the <dfn value for=all caniuse="css-revert-value">revert</dfn> keyword,
1262
- the behavior depends on the [=cascade origin=] to which the declaration belongs:
1262
+ the behavior depends on the [=cascade origin=] to which the [= declaration=] belongs:
1263
1263
1264
1264
<dl>
1265
1265
<dt> [=user-agent origin=]
0 commit comments