mozilla

Revision 48573 of -moz-background-inline-policy

  • Revision slug: CSS/-moz-background-inline-policy
  • Revision title: -moz-background-inline-policy
  • Revision id: 48573
  • Created:
  • Creator: DBaron
  • Is current revision? No
  • Comment initial value shouldn't be a link; it's in the same page

Revision Content

{{template.CSSMozExtensionRef()}}

Summary

In Gecko-based applications, -moz-background-inline-policy is a CSS property that specifies how the coordinate system for the {{template.Cssxref("background-position")}} of an inline element is chosen when the content of the inline element wraps onto multiple lines. The choice of position has significant effects on repetition.

  • {{template.Xref_cssinitial()}}: continuous
  • Applies to: inline elements
  • {{template.Xref_cssinherited()}}: no
  • Percentages: N/A
  • Media: {{template.Xref_cssvisual()}}
  • {{template.Xref_csscomputed()}}:

The -moz-background-inline-policy property has no effect when {{template.Cssxref("background-attachment")}} is fixed.

Syntax

-moz-background-inline-policy: bounding-box | continuous | each-box ;

Values

bounding-box 
The background image is positioned (and repeated) in the smallest rectangle that contains all of the inline boxes for the element. It is then clipped to be visible only within those boxes, according to the {{template.Cssxref("-moz-background-clip")}} property.
continuous
The background image is positioned (and repeated) as if the inline box were not broken across lines, and then this long rectangle is sliced into pieces for each line.
each-box
The background image is positioned (and repeated) separately for each box of the inline element. This means that an image with {{template.Cssxref("background-repeat")}}: no-repeat may be repeated multiple times.

Examples

Example showing the values of -moz-background-inline-policy

{{ wiki.languages( { "fr": "fr/CSS/-moz-background-inline-policy", "pl": "pl/CSS/-moz-background-inline-policy" } ) }}

Revision Source

<p> 
{{template.CSSMozExtensionRef()}}
</p>
<h3 name="Summary"> Summary </h3>
<p>In <a href="en/Gecko">Gecko</a>-based applications, <code>-moz-background-inline-policy</code> is a CSS property that specifies how the coordinate system for the {{template.Cssxref("background-position")}} of an inline element is chosen when the content of the inline element wraps onto multiple lines.  The choice of position has significant effects on repetition.
</p>
<ul><li> {{template.Xref_cssinitial()}}: <code>continuous</code>
</li><li> Applies to: inline elements
</li><li> {{template.Xref_cssinherited()}}: no
</li><li> Percentages: N/A
</li><li> Media: {{template.Xref_cssvisual()}}
</li><li> {{template.Xref_csscomputed()}}: 
</li></ul>
<p>The <code>-moz-background-inline-policy</code> property has no effect when {{template.Cssxref("background-attachment")}} is <code>fixed</code>.
</p>
<h3 name="Syntax"> Syntax </h3>
<pre class="eval">-moz-background-inline-policy: bounding-box | continuous | each-box ;
</pre>
<h3 name="Values"> Values </h3>
<dl><dt> bounding-box </dt><dd> The background image is positioned (and repeated) in the smallest rectangle that contains all of the inline boxes for the element.  It is then clipped to be visible only within those boxes, according to the {{template.Cssxref("-moz-background-clip")}} property.
</dd><dt> continuous</dt><dd> The background image is positioned (and repeated) as if the inline box were not broken across lines, and then this long rectangle is sliced into pieces for each line.
</dd><dt> each-box</dt><dd> The background image is positioned (and repeated) separately for each box of the inline element.  This means that an image with {{template.Cssxref("background-repeat")}}: <code>no-repeat</code> may be repeated multiple times.
</dd></dl>
<h3 name="Examples"> Examples </h3>
<p><a class="external" href="http://developer.mozilla.org/samples/cssref/moz-background-inline-policy-example.html">Example showing the values of <code>-moz-background-inline-policy</code></a>
</p>{{ wiki.languages( { "fr": "fr/CSS/-moz-background-inline-policy", "pl": "pl/CSS/-moz-background-inline-policy" } ) }}
Revert to this revision