Revision 6305 of background-clip

  • Revision slug: CSS/background-clip
  • Revision title: background-clip
  • Revision id: 6305
  • Created:
  • Creator: DBaron
  • Is current revision? No
  • Comment /* Values */

Revision Content

{{template.CSSMozExtensionRef()}}

Summary

In Mozilla applications, -moz-background-clip specifies whether an element's background extends underneath its border:

  • Initial value: border
  • Applies to: all elements
  • Inherited: no

-moz-background-clip is an experimental implementation of the proposed CSS 3 {{template.Cssxref("background-clip")}} property, which has not yet reached Candidate Recommendation (call for implementations).

Syntax

-moz-background-clip: border | padding

Values

border
The background extends to the outside edge of the border (but underneath the border in z-ordering).
padding
The background extends to the outside edge of the padding.

Examples

hbox.example {
  border: 10px double #000000;
  background-color: #00FF00;
  -moz-background-clip: padding; /* The background will not go behind the border */
}

Revision Source

<p> 
{{template.CSSMozExtensionRef()}}
</p>
<h3 name="Summary"> Summary </h3>
<p>In Mozilla applications, <code>-moz-background-clip</code> specifies whether an element's background extends underneath its border:
</p>
<ul><li> Initial value: border
</li><li> Applies to: all elements
</li><li> Inherited: no
</li></ul>
<p><code>-moz-background-clip</code> is an experimental implementation of the proposed CSS 3 {{template.Cssxref("background-clip")}} property, which has not yet reached Candidate Recommendation (call for implementations).
</p>
<h3 name="Syntax"> Syntax </h3>
<pre class="eval">-moz-background-clip: border | padding
</pre>
<h3 name="Values"> Values </h3>
<dl><dt> border</dt><dd> The background extends to the outside edge of the border (but underneath the border in z-ordering).
</dd><dt> padding</dt><dd> The background extends to the outside edge of the padding.
</dd></dl>
<h3 name="Examples"> Examples </h3>
<pre>hbox.example {
  border: 10px double #000000;
  background-color: #00FF00;
  -moz-background-clip: padding; /* The background will not go behind the border */
}
</pre>
Revert to this revision