primitiveUnits

  • Revision slug: Web/SVG/Attribute/primitiveUnits
  • Revision title: primitiveUnits
  • Revision id: 426815
  • Created:
  • Creator: Jeremie
  • Is current revision? Yes
  • Comment page created, 143 words addedMoved From SVG/Attribute/primitiveUnits to Web/SVG/Attribute/primitiveUnits

Revision Content

« SVG Attribute reference home

The primitiveUnits attribute specifies the coordinate system for the various length values within the filter primitives and for the attributes that define the filter primitive subregion.

If the primitiveUnits attribute isn't specified, then the effect is as if a value of objectBoundingBox were specified.

Usage context

Categories None
Value userSpaceOnUse | objectBoundingBox
Animatable Yes
Normative document SVG 1.1 (2nd Edition)
userSpaceOnUse
Any length values within the filter definitions represent values in the current user coordinate system in place at the time when the {{ SVGElement("filter") }} element is referenced (i.e., the user coordinate system for the element referencing the {{ SVGElement("filter") }} element via a {{ SVGAttr("filter") }} attribute).
objectBoundingBox
Any length values within the filter definitions represent fractions or percentages of the bounding box on the referencing element.

Examples

Elements

The following elements can use the primitiveUnits attribute:

  • {{ SVGElement("filter") }}

Revision Source

<p>« <a href="/en/SVG/Attribute" title="en/SVG/Attribute">SVG Attribute reference home</a></p>
<p>The <code>primitiveUnits</code> attribute specifies the coordinate system for the various length values within the filter primitives and for the attributes that define the filter primitive subregion.</p>
<p>If the <code>primitiveUnits</code> attribute isn't specified, then the effect is as if a value of <code>objectBoundingBox</code> were specified.</p>
<h2 id="Usage_context">Usage context</h2>
<table class="standard-table"> <tbody> <tr> <th scope="row">Categories</th> <td><em>None</em></td> </tr> <tr> <th scope="row">Value</th> <td><code>userSpaceOnUse</code> | <code><strong>objectBoundingBox</strong></code></td> </tr> <tr> <th scope="row">Animatable</th> <td>Yes</td> </tr> <tr> <th scope="row">Normative document</th> <td><a class="external" href="http://www.w3.org/TR/SVG11/filters.html#FilterElementPrimitiveUnitsAttribute" title="http://www.w3.org/TR/SVG11/filters.html#FilterElementPrimitiveUnitsAttribute">SVG 1.1 (2nd Edition)</a></td> </tr> </tbody>
</table>
<dl> <dt>userSpaceOnUse</dt> <dd>Any length values within the filter definitions represent values in the current user coordinate system in place at the time when the {{ SVGElement("filter") }} element is referenced (i.e., the user coordinate system for the element referencing the {{ SVGElement("filter") }} element via a {{ SVGAttr("filter") }} attribute).</dd> <dt>objectBoundingBox</dt> <dd>Any length values within the filter definitions represent fractions or percentages of the bounding box on the referencing element.</dd>
</dl>
<h2 id="Examples">Examples</h2>
<h2 id="Elements">Elements</h2>
<p>The following elements can use the <code>primitiveUnits</code> attribute:</p>
<ul> <li>{{ SVGElement("filter") }}</li>
</ul>
Revert to this revision