mozilla

Revision 6312 of background-clip

  • Revision slug: CSS/background-clip
  • Revision title: background-clip
  • Revision id: 6312
  • Created:
  • Creator: Marsf
  • Is current revision? No
  • Comment ja

Revision Content

{{ CSSMozExtensionRef() }}

Summary

In Gecko-based applications, -moz-background-clip specifies whether an element's background extends underneath its border. This only has any visual effect when the border has transparent regions (because of {{ Cssxref("border-style") }}) or partially opaque regions; otherwise the border covers up the difference.

  • {{ Xref_cssinitial() }}: {{ Cssxref("border") }}
  • Applies to: all elements
  • {{ Xref_cssinherited() }}: no
  • Percentages: N/A
  • Media: {{ Xref_cssvisual() }} {{ xref cssinteractive }} {{ xref cssaural }}
  • {{ Xref_csscomputed() }}:

-moz-background-clip is an experimental implementation of the proposed CSS 3 {{ 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;
  border-top-style: dashed;
  background-color: #00FF00;
  /* The background will not go behind the border */
  -moz-background-clip: padding;
}
{{ languages( { "fr": "fr/CSS/-moz-background-clip", "ja": "ja/CSS/-moz-background-clip", "pl": "pl/CSS/-moz-background-clip" } ) }}

Revision Source

<p> {{ CSSMozExtensionRef() }}
</p>
<h3 name="Summary"> Summary </h3>
<p>In <a href="en/Gecko">Gecko</a>-based applications, <code>-moz-background-clip</code> specifies whether an element's background extends underneath its border. This only has any visual effect when the border has transparent regions (because of {{ Cssxref("border-style") }}) or partially opaque regions; otherwise the border covers up the difference.
</p>
<ul><li> {{ Xref_cssinitial() }}: {{ Cssxref("border") }}
</li><li> Applies to: all elements
</li><li> {{ Xref_cssinherited() }}: no
</li><li> Percentages: N/A
</li><li> Media: {{ Xref_cssvisual() }} <span class="comment">{{ xref cssinteractive }} {{ xref cssaural }}</span>
</li><li> {{ Xref_csscomputed() }}: </li></ul>
<p><code>-moz-background-clip</code> is an experimental implementation of the proposed CSS 3 {{ 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;
  border-top-style: dashed;
  background-color: #00FF00;
  /* The background will not go behind the border */
  -moz-background-clip: padding;
}
</pre>
<div class="noinclude">
</div>
{{ languages( { "fr": "fr/CSS/-moz-background-clip", "ja": "ja/CSS/-moz-background-clip", "pl": "pl/CSS/-moz-background-clip" } ) }}
Revert to this revision