mozilla

Compare Revisions

inheritance

Change Revisions

Revision 342751:

Revision 342751 by shitface on

Revision 342755:

Revision 342755 by shitface on

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

Revision 342751
Revision 342755
n7    <h2>n7    <h2 id="Summary">
n10    <h2>n10    <h2 id="The_summary_of_every_CSS_property_definition_says_whe
 >ther_that_property_is_inherited_by_default_(.22Inherited.3A_Yes.2
 >2)_or_not_inherited_by_default_(.22Inherited.3A_no.22)._This_cont
 >rols_what_happens_when_no_value_is_specified_for_a_property_on_an
 >_element.">
n13    <h2 name="Inherited_properties">n13    <h2 id="Inherited_properties" name="Inherited_properties">
n17      <h2>n17      <h2 id="When_no_value_for_an_inherited_property_has_been_sp
 >ecified_on_an_element.2C_the_element_gets_the_computed_value_of_t
 >hat_property_on_its_parent_element._Only_the_root_element_of_the_
 >document_gets_the_initial_value_given_in_the_property's_summary."
 >>
n21    <h2>n21    <h2 id="A_typical_example_of_an_inherited_property_is_the_.7B
 >.7B_Cssxref(.22color.22)_.7D.7D_property._Given_the_style_rules.3
 >A">
n24    <h2 class="brush: css">n24    <h2 class="brush: css" id="p_.7B_color.3A_green_.7D">
n27    <h2>n27    <h2 id="and_the_markup.3A">
n30    <h2 class="brush: html">n30    <h2 class="brush: html" id="&lt;p&gt;This_paragraph_has_&lt;e
 >m&gt;emphasized_text&lt;.2Fem&gt;_in_it.&lt;.2Fp&gt;">
n33    <h2>n33    <h2 id="the_words_.22emphasized_text.22_will_appear_green.2C_
 >since_the_em_element_has_inherited_the_value_of_the_.7B.7B_Cssxre
 >f(.22color.22)_.7D.7D_property_from_the_p_element._It_does_not_ge
 >t_the_initial_value_of_the_property_(which_is_the_color_that_is_u
 >sed_for_the_root_element_when_the_page_specifies_no_color).">
n36    <h2 name="Non-inherited_properties">n36    <h2 id="Non-inherited_properties" name="Non-inherited_propert
 >ies">
n39    <h2>n39    <h2 id="When_no_value_for_an_non-inherited_property_(sometime
 >s_called_a_reset_property_in_Mozilla_code)_has_been_specified_on_
 >an_element.2C_the_element_gets_the_initial_value_of_that_property
 >_(as_specified_in_the_property's_summary).">
n42    <h2>n42    <h2 id="A_typical_example_of_a_non-inherited_property_is_the_
 >.7B.7B_Cssxref(.22border.22)_.7D.7D_property._Given_the_style_rul
 >es.3A">
n45    <h2 class="brush: css">n45    <h2 class="brush: css" id=".C2.A0p_.7B_border.3A_medium_solid
 >_.7D">
n48    <h2>n48    <h2 id="and_the_markup">
n51    <h2 class="brush: html">n51    <h2 class="brush: html" id=".C2.A0_&lt;p&gt;This_paragraph_ha
 >s_&lt;em&gt;emphasized_text&lt;.2Fem&gt;_in_it.&lt;.2Fp&gt;">
n54    <h2>n54    <h2 id="the_words_.22emphasized_text.22_will_not_have_a_borde
 >r_(since_the_initial_value_of_.7B.7B_Cssxref(.22border-style.22)_
 >.7D.7D_is_none).">
n57    <h2 name="Notes">n57    <h2 id="Notes" name="Notes">
n60    <h2>n60    <h2 id="The_.7B.7B_Cssxref(.22inherit.22)_.7D.7D_keyword_allo
 >ws_authors_to_explicitly_specify_inheritance._It_works_on_both_in
 >herited_and_non-inherited_properties.">
n63    <h2 name="See_Also">n63    <h2 id="See_Also" name="See_Also">
n66    <h2>n66    <h2 id=".7B.7B_CSS_key_concepts()_.7D.7D.C2.A0">
t71        <h2>t71        <h2 id="CSS_Reference">

Back to History