fill-opacity

  • Revision slug: Web/SVG/Attribute/fill-opacity
  • Revision title: fill-opacity
  • Revision id: 483671
  • Created:
  • Creator: kscarfone
  • Is current revision? Yes
  • Comment Editorial review

Revision Content

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 id="Usage_context">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><a href="/en/SVG/Content_type#Opacity_value" title="en/SVG/Content_type#Opacity_value">&lt;opacity-value&gt;</a> | 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>
<h2 id="Examples">Examples</h2>
<h2 id="Elements">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>&nbsp;»</li>
 <li><a href="/en/SVG/Element#TextContent" title="en/SVG/Element#TexteContent">Text content elements</a>&nbsp;»</li>
</ul>
<h2 id="See_also">See also</h2>
<ul>
 <li>{{ SVGAttr("stroke-opacity") }}</li>
 <li>{{ SVGAttr("opacity") }}</li>
</ul>
Revert to this revision