MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See whistlepig.mozilla.org for all notifications.

mozilla

Revision 237620 of initial value

  • Revision slug: CSS/initial_value
  • Revision title: initial value
  • Revision id: 237620
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment Reverted to earlier version; 7 words added, 39 words removed; page display name changed to 'initial value'
Tags: 

Revision Content

Summary

The initial value given in the summary of the definition of each CSS property has different meaning for inherited and non-inherited properties.

For inherited properties, the initial value is used, for the root element only, when no value is specified for the element.

For non-inherited properties the initial value is used, for any element, when no value is specified for the element.

An initial keyword is being added in CSS3 to allow authors to explicitly specify this initial value.

See Also

{{ languages( { "es": "es/CSS/Valor_inicial", "fr": "fr/CSS/Valeur_initiale", "ja": "ja/CSS/initial_value", "ko": "ko/CSS/initial_value", "pl": "pl/CSS/Warto\u015b\u0107_pocz\u0105tkowa" } ) }}

Revision Source

<h2>Summary</h2>
<p>The <strong>initial value</strong> given in the summary of the definition of <a href="/en/CSS_Reference" title="en/CSS_Reference">each CSS property</a> has different meaning for <a href="/en/CSS/inheritance" title="en/CSS/inheritance">inherited and non-inherited properties</a>.</p>
<p>For <a href="/en/CSS/inheritance#Inherited_properties" title="en/CSS/inheritance#Inherited_properties">inherited properties</a>, the initial value is used, for the root element <strong>only</strong>, when no value is specified for the element.</p>
<p>For <a href="/en/CSS/inheritance#Non-inherited_properties" title="en/CSS/inheritance#Non-inherited_properties">non-inherited properties</a> the initial value is used, for <strong>any</strong> element, when no value is specified for the element.</p>
<p>An <code><a href="/en/CSS/initial" title="en/CSS/initial">initial</a></code> keyword is being added in CSS3 to allow authors to explicitly specify this initial value.</p>
<h2 name="See_Also">See Also</h2>
<ul> <li><a href="/en/CSS_Reference" title="CSS Reference">CSS Reference</a></li> <li>{{ CSS_key_concepts() }}</li> <li> <code><a href="/en/CSS/initial" title="en/CSS/initial">initial</a></code></li>
</ul> <p>{{ languages( { "es": "es/CSS/Valor_inicial", "fr": "fr/CSS/Valeur_initiale", "ja": "ja/CSS/initial_value", "ko": "ko/CSS/initial_value", "pl": "pl/CSS/Warto\u015b\u0107_pocz\u0105tkowa" } ) }}</p>
Revert to this revision