mozilla

Compare Revisions

inheritance

Change Revisions

Revision 314149:

Revision 314149 by FredB on

Revision 342751:

Revision 342751 by shitface on

Title:
inheritance
inheritance
Slug:
CSS/inheritance
CSS/inheritance
Tags:
"css", "CSS Reference"
"css", "CSS Reference"
Content:

Revision 314149
Revision 342751
n7    <h2 id="Summary">n7    <h2>
8      Summary8      <code>Summary</code>
n10    <p>n10    <h2>
n12    </p>n12    </h2>
13    <h2 id="Inherited_properties" name="Inherited_properties">13    <h2 name="Inherited_properties">
n16    <p>n16    <div class="note">
17      <h2>
17      When no value for an <strong>inherited property</strong> ha18        When no value for an <strong>inherited property</strong> 
>s been specified on an element, the element gets the <a href="/en>has been specified on an element, the element gets the <strike><a
>-US/docs/CSS/computed_value" title="en/CSS/computed_value">comput> href="/en-US/docs/CSS/computed_value" title="en/CSS/computed_val
>ed value</a> of that property on its parent element. Only the roo>ue">computed value</a></strike> of that property on its parent el
>t element of the document gets the <a href="/en-US/docs/CSS/initi>ement. Only the root element of the document gets the <a href="/e
>al_value" title="en/CSS/initial_value">initial value</a> given in>n-US/docs/CSS/initial_value" title="en/CSS/initial_value">initial
> the property's summary.> value</a> given in the property's summary.
19      </h2>
18    </p>20    </div>
19    <p>21    <h2>
n21    </p>n23    </h2>
22    <pre class="brush: css">24    <h2 class="brush: css">
23p { color: green }25      p { color: green }
24</pre>26    </h2>
25    <p>27    <h2>
n27    </p>n29    </h2>
28    <pre class="brush: html">30    <h2 class="brush: html">
29&lt;p&gt;This paragraph has &lt;em&gt;emphasized text&lt;/em&gt; 31      &lt;p&gt;This paragraph has &lt;em&gt;emphasized text&lt;/e
>in it.&lt;/p&gt;>m&gt; in it.&lt;/p&gt;
30</pre>32    </h2>
31    <p>33    <h2>
n33    </p>n35    </h2>
34    <h2 id="Non-inherited_properties" name="Non-inherited_propert36    <h2 name="Non-inherited_properties">
>ies"> 
n37    <p>n39    <h2>
n39    </p>n41    </h2>
40    <p>42    <h2>
n42    </p>n44    </h2>
43    <pre class="brush: css">45    <h2 class="brush: css">
44 p { border: medium solid }46      &nbsp;p { border: medium solid }
45</pre>47    </h2>
46    <p>48    <h2>
n48    </p>n50    </h2>
49    <pre class="brush: html">51    <h2 class="brush: html">
50  &lt;p&gt;This paragraph has &lt;em&gt;emphasized text&lt;/em&gt52      &nbsp; &lt;p&gt;This paragraph has &lt;em&gt;emphasized tex
>; in it.&lt;/p&gt;>t&lt;/em&gt; in it.&lt;/p&gt;
51</pre>53    </h2>
52    <p>54    <h2>
n54    </p>n56    </h2>
55    <h2 id="Notes" name="Notes">57    <h2 name="Notes">
n58    <p>n60    <h2>
n60    </p>n62    </h2>
61    <h2 id="See_Also" name="See_Also">63    <h2 name="See_Also">
nn65    </h2>
66    <h2>
67      {{ CSS_key_concepts() }}<span style="background-color:#ff00
 >00;"><span style="color:#00ffff;"><span id="cke_bm_391C" style="d
 >isplay: none;">&nbsp;</span></span></span>
nn71        <h2>
66        <a href="/en-US/docs/CSS/CSS_Reference" title="CSS Refere72          <a dir="ltr" href="/en-US/docs/CSS/CSS_Reference" title
>nce">CSS Reference</a>>="CSS Reference">CSS Reference</a>
73        </h2>
t68      <li>{{ CSS_key_concepts() }}t
69      </li>75      <li>
70      <li>{{ Cssxref("inherit") }}76        <dl>
77          <dd>
78            <dl>
79              <dt class="brush: js">
80                {{ Cssxref("inherit") }}<span id="cke_bm_536C" st
 >yle="display: none;">&nbsp;</span>
81              </dt>
82            </dl>
83          </dd>
84        </dl>

Back to History