You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: css3-cascade/Overview.src.html
+7-13Lines changed: 7 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -480,8 +480,7 @@ <h2>Cascading</h2>
480
480
481
481
<ol>
482
482
<li>Weight. In CSS3, the weight of a declaration is based on the origin of
483
-
the declaration and its marked level of importance. See a separate section
484
-
below for how to compute the weight. The declaration with the highest weight wins.
483
+
the declaration and its marked level of importance. See <ahref="#computing-weight">Computing Weight</a> below for how to compute the weight. The declaration with the highest weight wins.
485
484
486
485
<li>Specificity. The <ahref="/TR/css3-selectors">Selectors module</a>
487
486
[[!SELECT]] describes how to compute the specificity. The
@@ -500,19 +499,14 @@ <h2>Inheritance</h2>
500
499
501
500
<p>Inheritance is a way of propagating property values from parent
502
501
elements to their children. Inheritance means that the specified value
503
-
of a given element/property combination is copied from the computed
504
-
value of the parent element.
502
+
of a given element/property is copied from the parent element's
503
+
computed value for the same property.
505
504
506
-
<p>
505
+
<p>The root element, which has no parent element, inherits the initial value of the property.
507
506
508
-
<ul>
509
-
<li>The root element, which has no parent element, inherits the initial value of the property.
510
-
<li>The page box inherits from the inherits the initial value
511
-
<li>Margin boxes inherit from the page box
512
-
<li>pseudo-elements inherit according to the fictional tag sequence [[!SELECT]]
513
-
<li>pseudo-classes inherit from its parent
507
+
<p>The page box inherits from the inherits the initial value of the property. Margin boxes inherit from the page pox.
514
508
515
-
</ul>
509
+
<p>Pseudo-elements inherit according to a fictional tag sequence described for each pseudo-element [[!SELECT]].
516
510
517
511
518
512
<p>Some properties are said to be <dfn
@@ -536,7 +530,7 @@ <h2>Initial value</h2>
536
530
keyword which all properties accept.
537
531
538
532
539
-
<h2>Computing weight</h2>
533
+
<h2id="computing-weight">Computing weight</h2>
540
534
541
535
<p>In order to sort declarations in the cascading process, the weight
542
536
of a declaration must be known. In CSS3, the weight of a declaration
0 commit comments