mozilla

Revision 91577 of stroke-opacity

  • Revision slug: SVG/Attribute/stroke-opacity
  • Revision title: stroke-opacity
  • Revision id: 91577
  • Created:
  • Creator: Jeremie
  • Is current revision? No
  • Comment page created, 115 words added

Revision Content

« SVG Attribute reference home

the stroke-opacity attribute specifies the opacity of the outline on the current object. Its default value is 1.

As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet

Usage context

Categories Presentation attribute
Value <opacity-value> | inherit
Animatable Yes
Normative document SVG 1.1 (2nd Edition)
<opacity-value>
The opacity of the painting operation used to outline the current object, as a number. Any values outside the range 0.0 (fully transparent) to 1.0 (fully opaque) will be clamped to this range.

Example

Elements

The following elements can use the stroke-opacity attribute

See also

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

Revision Source

<p>« <a href="/en/SVG/Attribute" title="en/SVG/Attribute">SVG Attribute reference home</a></p>
<p>the <code>stroke-opacity</code> attribute specifies the opacity of the outline on the current object. Its default value is <strong>1</strong>.</p>
<p>As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet</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>&lt;opacity-value&gt; | inherit</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#StrokeOpacityProperty" title="http://www.w3.org/TR/SVG/painting.html#StrokeOpacityProperty">SVG 1.1 (2nd Edition)</a></td> </tr> </tbody>
</table>
<dl> <dt>&lt;opacity-value&gt;</dt> <dd>The opacity of the painting operation used to outline the current object, as a number. Any values outside the range 0.0 (fully transparent) to 1.0 (fully opaque) will be clamped to this range.</dd>
</dl>
<h2 id="Example">Example</h2>
<h2 id="Elements">Elements</h2>
<p>The following elements can use the <code>stroke-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#TextContent">Text content elements</a> »</li>
</ul>
<h2 id="See_also">See also</h2>
<ul> <li>{{ SVGAttr("fill-opacity") }}</li> <li>{{ SVGAttr("opacity") }}</li>
</ul>
Revert to this revision