|
1 | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
2 | 2 | <html lang="en">
|
3 |
| -<!-- $Id: cascade.src,v 2.75 2011-10-18 19:25:27 bbos Exp $ --> |
| 3 | +<!-- $Id: cascade.src,v 2.76 2011-11-17 13:37:40 bbos Exp $ --> |
4 | 4 | <HEAD>
|
5 | 5 | <TITLE>Assigning property values, Cascading, and Inheritance</TITLE>
|
6 | 6 | <!--script src="http://www.w3c-test.org/css/harness/annotate.js#CSS21_DEV" type="text/javascript" defer></script-->
|
@@ -32,6 +32,8 @@ on the following mechanisms (in order of precedence):</p>
|
32 | 32 |
|
33 | 33 | <ol>
|
34 | 34 | <li>If the <a href="#cascade">cascade</a> results in a value, use it.
|
| 35 | +But if the cascade results in 'inherit', the specified value is as |
| 36 | +explained in <a href="#value-def-inherit" >“The 'inherit' value.”</a> |
35 | 37 | <li>Otherwise, if the property is <a href="#inheritance">inherited</a> and the element is not the root of the <a>document tree</a>, use the computed value of the parent element.
|
36 | 38 | <li>Otherwise use the property's <span class="index-def" title="initial value">initial value</span>. The initial value of each property is indicated in the property's definition.
|
37 | 39 | </ol>
|
@@ -147,8 +149,8 @@ of"><a name="value-def-inherit">'inherit'</a></span>
|
147 | 149 | value</h3>
|
148 | 150 |
|
149 | 151 | <P>Each property may also have a cascaded value of 'inherit', which
|
150 |
| -means that, for a given element, the property takes the same specified |
151 |
| -value as the property for the element's parent. The 'inherit' value |
| 152 | +means that, for a given element, the property takes as specified |
| 153 | +value the computed value of the element's parent. The 'inherit' value |
152 | 154 | can be used to enforce inheritance of values, and it can also be used on
|
153 | 155 | properties that are not normally inherited.
|
154 | 156 |
|
|
0 commit comments