mozilla

Revision 59074 of fill-opacity

  • Revision slug: SVG/Attribute/fill-opacity
  • Revision title: fill-opacity
  • Revision id: 59074
  • Created:
  • Creator: Jeremie
  • Is current revision? No
  • Comment 129 words added, 7 words removed

Revision Content

« SVG Attribute reference home

This attribute specifies the opacity of the color or the content the current object is filled with.

Usage context

Categories Presentation attribute
Value <opacity-value> | inherit
Initial value 1
Animatable Yes
Normative document SVG 1.1 (2nd Edition)
<opacity-value>
The opacity of the color or the content the current object is filled with, as a <number>. Any values outside the range 0.0 (fully transparent) to 1.0 (fully opaque) will be clamped to this range.

Examples

Elements

The following elements can use the fill-opacity attribute

See also

  • {{ SVGAttr("stroke-opacity") }}
  • {{ SVGAttr("opacity") }}

Revision Source

<p>« <a href="/en/SVG/Attribute" title="en/SVG/Attribute">SVG Attribute reference home</a></p>
<p>This attribute specifies the opacity of the color or the content the current object is filled with.</p>
<h2>Usage context</h2>
<table class="standard-table"> <tbody> <tr> <th scope="row">Categories</th> <td>Presentation attribute</td> </tr> <tr> <th scope="row">Value</th> <td>&lt;opacity-value&gt; | inherit</td> </tr> <tr> <th scope="row">Initial value</th> <td>1</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/SVG/painting.html#FillOpacityProperty" title="http://www.w3.org/TR/SVG/painting.html#FillOpacityProperty">SVG 1.1 (2nd Edition)</a></td> </tr> </tbody>
</table>
<dl> <dt>&lt;opacity-value&gt;</dt> <dd>The opacity of the color or the content the current object is filled with, as a <a href="/en/SVG/Content_type#Number" title="en/SVG/Content_type#Number">&lt;number&gt;</a>. Any values outside the range 0.0 (fully transparent) to 1.0 (fully opaque) will be clamped to this range.</dd>
</dl>
<h2>Examples</h2>
<h2>Elements</h2>
<p>The following elements can use the <code>fill-opacity</code> attribute</p>
<ul> <li><a href="/en/SVG/Element#Shape" title="en/SVG/Element#Shape">Shape elements</a> »</li> <li><a href="/en/SVG/Element#TextContent" title="en/SVG/Element#TexteContent">Text content elements</a> »</li>
</ul>
<h2>See also</h2>
<ul> <li>{{ SVGAttr("stroke-opacity") }}</li> <li>{{ SVGAttr("opacity") }}</li>
</ul>
Revert to this revision