mozilla

Revision 6311 of background-clip

  • Revision slug: CSS/background-clip
  • Revision title: background-clip
  • Revision id: 6311
  • Created:
  • Creator: BijuGC
  • Is current revision? No
  • Comment /* Summary */

Revision Content

{{template.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 {{template.Cssxref("border-style")}}) or partially opaque regions; otherwise the border covers up the difference.

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

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

Revision Source

<p> 
{{template.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 {{template.Cssxref("border-style")}}) or partially opaque regions; otherwise the border covers up the difference.
</p>
<ul><li> {{template.Xref_cssinitial()}}: {{template.Cssxref("border")}}
</li><li> Applies to: all elements
</li><li> {{template.Xref_cssinherited()}}: no
</li><li> Percentages: N/A
</li><li> Media: {{template.Xref_cssvisual()}}   <span class="comment">{{xref cssinteractive}} {{xref cssaural}}</span>
</li><li> {{template.Xref_csscomputed()}}: 
</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;
  border-top-style: dashed;
  background-color: #00FF00;
  /* The background will not go behind the border */
  -moz-background-clip: padding;
}
</pre>
{{ wiki.languages( { "fr": "fr/CSS/-moz-background-clip", "pl": "pl/CSS/-moz-background-clip" } ) }}
Revert to this revision