Want to share your CSS expertise with others? Apply to the MDN Fellowship by April 1! http://mzl.la/MDNFellowship

mozilla

Compare Revisions

inherit

Change Revisions

Revision 20180:

Revision 20180 by Abid on

Revision 20181:

Revision 20181 by teoli on

Title:
inherit
inherit
Slug:
CSS/inherit
CSS/inherit
Tags:
css, "CSS Reference", NeedsCompatTable, NeedsMobileBrowserCompatibility
css, "CSS Reference", NeedsCompatTable, NeedsMobileBrowserCompatibility
Content:

Revision 20180
Revision 20181
n9    </p>n
10    <h3 name="Summary">
11      Summary
12    </h3>
13    <p>
14      The {{ cssxref("inherit") }} value is allowed on every CSS 
>property. It causes the element for which it is specified to take 
> the {{ Xref_csscomputed() }} of the property from its parent ele 
>ment. 
15    </p>
16    <p>
17      {{ CSSRef() }}
18    </p>
19    <p>
20      ndmsd&nbsp; ckdj
t160    <h4 name="For_non-inherited_properties">t
161      For non-inherited properties
162    </h4>
163    <p>
164      For <a href="/en/CSS/inheritance" title="en/CSS/inheritance
>">non-inherited properties</a>, this specifies a behavior that ty 
>pically makes relatively little sense. 
165    </p>
166    <h3 name="Notes">
167      Notes
168    </h3>
169    <p>
170      Inheritance is always from the parent element in the docume
>nt tree, even when the parent element is not the containing block 
>. 
171    </p>
172    <h3 name="Specifications">
173      Specifications
174    </h3>
175    <table border="1" cellpadding="1" cellspacing="1" style="widt
>h: 1053px; border-style: solid; border-width: 1px; height: 75px;  
>border-color: rgb(0,0,0);"> 
176      <thead>
177        <tr style="background-color: rgb(255, 204, 255);">
178          <th scope="col">
179            Specification
180          </th>
181          <th scope="col">
182            Status
183          </th>
184          <th scope="col">
185            Comment
186          </th>
187        </tr>
188      </thead>
189      <tbody>
190        <tr>
191          <td>
192            <a class="external" href="http://www.w3.org/TR/css3-v
>alues/#common-keywords" title="http://www.w3.org/TR/css3-values/# 
>common-keywords">CSS Values and Units Level 3</a> 
193          </td>
194          <td>
195            {{ Spec2('CSS3 Values') }}
196          </td>
197          <td>
198            No significant change from CSS Level 2 (Revision 1)
199          </td>
200        </tr>
201        <tr style="vertical-align: top;">
202          <td style="vertical-align: top;">
203            <a class="external" href="http://www.w3.org/TR/CSS21/
>cascade.html#value-def-inherit" title="http://www.w3.org/TR/CSS21 
>/cascade.html#value-def-inherit">CSS Level 2 (Revision 1)</a> 
204          </td>
205          <td style="vertical-align: top;">
206            {{ Spec2('CSS2.1') }}
207          </td>
208          <td style="vertical-align: top;">
209            &nbsp;
210          </td>
211        </tr>
212      </tbody>
213    </table>
214    <h3 name="Browser_Compatibility">
215      Browser Compatibility
216    </h3>
217    <table class="standard-table">
218      <tbody>
219        <tr>
220          <th>
221            Browser
222          </th>
223          <th>
224            Lowest Version
225          </th>
226        </tr>
227        <tr>
228          <td>
229            Internet Explorer
230          </td>
231          <td>
232            <strong>8.0</strong>
233          </td>
234        </tr>
235        <tr>
236          <td>
237            Firefox (Gecko)
238          </td>
239          <td>
240            <strong>1.0</strong> (1.0)
241          </td>
242        </tr>
243        <tr>
244          <td>
245            Opera
246          </td>
247          <td>
248            4.0-7.0
249          </td>
250        </tr>
251        <tr>
252          <td>
253            Safari (WebKit)
254          </td>
255          <td>
256            <strong>1.0</strong> (85)
257          </td>
258        </tr>
259      </tbody>
260    </table>
261    <h3 name="See_Also">
262      See Also
263    </h3>
264    <p>
265      <a class="internal" href="/es/CSS/inheritance" title="es/CS
>S/inheritance">Inheritance</a>, {{ cssxref("initial") }} 
266    </p>
267    <p>
268      {{ languages( { "es": "es/CSS/inherit", "fr": "fr/CSS/inher
>it" } ) }} 
269    </p>

Back to History