Revision 449925 of stop-color

  • Revision slug: Web/SVG/Attribute/stop-color
  • Revision title: stop-color
  • Revision id: 449925
  • Created:
  • Creator: teoli
  • Is current revision? Yes
  • Comment

Revision Content

« SVG Attribute reference home

The stop-color attribute indicates what color to use at that gradient stop. The keyword currentColor and ICC colors can be specified in the same manner as within a <paint> specification for the {{ SVGAttr("fill") }} and {{ SVGAttr("stroke") }} attributes.

Usage context

Categories Presentation attribute
Value currentColor | <color> | <icccolor> | inherit
Initial value black
Animatable Yes
Normative document SVG 1.1 (2nd Edition)

Examples

Elements

The following elements can use the stop-color attribute

  • {{ SVGElement("stop") }}

See also

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

Revision Source

<p>« <a href="/en/SVG/Attribute" title="en/SVG/Attribute">SVG Attribute reference home</a></p>
<p>The <code>stop-color</code> attribute indicates what color to use at that gradient stop. The keyword <code>currentColor</code> and ICC colors can be specified in the same manner as within a <a href="/en/SVG/Content_type#Paint" title="en/SVG/Content_type#Paint">&lt;paint&gt;</a> specification for the {{ SVGAttr("fill") }} and {{ SVGAttr("stroke") }} attributes.</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>currentColor | <a href="/en/SVG/Content_type#Color" title="en/SVG/Content_type#Color">&lt;color&gt;</a> | <a href="/en/SVG/Content_type#ICCColor" title="en/SVG/Content_type#ICCColor">&lt;icccolor&gt;</a> | inherit</td>
    </tr>
    <tr>
      <th scope="row">Initial value</th>
      <td>black</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/pservers.html#StopColorProperty" title="http://www.w3.org/TR/SVG11/pservers.html#StopColorProperty">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>stop-color</code> attribute</p>
<ul>
  <li>{{ SVGElement("stop") }}</li>
</ul>
<h2 id="See_also">See also</h2>
<ul>
  <li>{{ SVGAttr("stop-opacity") }}</li>
</ul>
Revert to this revision