Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 57678 of SVGLinearGradientElement

  • Revision slug: DOM/SVGLinearGradientElement
  • Revision title: SVGLinearGradientElement
  • Revision id: 57678
  • Created:
  • Creator: Jeremie
  • Is current revision? No
  • Comment page created, 150 words added

Revision Content

SVG linearGradient interface

The SVGLinearGradientElement interface corresponds to the {{SVGElement("linearGradient") element.

Interface overview

Also implement {{ domxref("SVGGradientElement") }}
Methods None
Properties
  • readonly {{ domxref("SVGAnimatedLength") }} x1
  • readonly {{ domxref("SVGAnimatedLength") }} y1
  • readonly {{ domxref("SVGAnimatedLength") }} x2
  • readonly {{ domxref("SVGAnimatedLength") }} y2
Normative document SVG 1.1 (2nd Edition)

Properties

Name Type Description
x1 {{ domxref("SVGAnimatedLength") }} Corresponds to attribute {{ SVGAttr("x1") }} on the given {{ SVGElement("linearGradient") }} element.
y1 {{ domxref("SVGAnimatedLength") }} Corresponds to attribute {{ SVGAttr("y1") }} on the given {{ SVGElement("linearGradient") }} element.
x2 {{ domxref("SVGAnimatedLength") }} Corresponds to attribute {{ SVGAttr("x2") }} on the given {{ SVGElement("linearGradient") }} element.
y2 {{ domxref("SVGAnimatedLength") }} Corresponds to attribute {{ SVGAttr("y2") }} on the given {{ SVGElement("linearGradient") }} element.

Methods

The SVGLinearGradientElement interface do not provide any specific methods.

Browser compatibility

{{ CompatibilityTable() }}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }}
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support {{ CompatNo() }} {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }}

Revision Source

<h2>SVG linearGradient interface</h2>
<p>The <code>SVGLinearGradientElement</code> interface corresponds to the {{SVGElement("linearGradient") element.</p>
<h3>Interface overview</h3>
<table class="standard-table"> <tbody> <tr> <th scope="row">Also implement</th> <td>{{ domxref("SVGGradientElement") }}</td> </tr> <tr> <th scope="row">Methods</th> <td><em>None</em></td> </tr> <tr> <th scope="row">Properties</th> <td> <ul> <li>readonly {{ domxref("SVGAnimatedLength") }} <code>x1</code></li> <li>readonly {{ domxref("SVGAnimatedLength") }} <code>y1</code></li> <li>readonly {{ domxref("SVGAnimatedLength") }} <code>x2</code></li> <li>readonly {{ domxref("SVGAnimatedLength") }} <code>y2</code></li> </ul> </td> </tr> <tr> <th scope="row">Normative document</th> <td><a class="external" href="https://www.w3.org/TR/SVG11/pservers.html#InterfaceSVGLinearGradientElement" title="https://www.w3.org/TR/SVG11/pservers.html#InterfaceSVGLinearGradientElement">SVG 1.1 (2nd Edition)</a></td> </tr> </tbody>
</table>
<h2>Properties</h2>
<table class="standard-table"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>x1</code></td> <td>{{ domxref("SVGAnimatedLength") }}</td> <td>Corresponds to attribute {{ SVGAttr("x1") }} on the given {{ SVGElement("linearGradient") }} element.</td> </tr> <tr> <td><code>y1</code></td> <td>{{ domxref("SVGAnimatedLength") }}</td> <td>Corresponds to attribute {{ SVGAttr("y1") }} on the given {{ SVGElement("linearGradient") }} element.</td> </tr> <tr> <td><code>x2</code></td> <td>{{ domxref("SVGAnimatedLength") }}</td> <td>Corresponds to attribute {{ SVGAttr("x2") }} on the given {{ SVGElement("linearGradient") }} element.</td> </tr> <tr> <td><code>y2</code></td> <td>{{ domxref("SVGAnimatedLength") }}</td> <td>Corresponds to attribute {{ SVGAttr("y2") }} on the given {{ SVGElement("linearGradient") }} element.</td> </tr> </tbody>
</table>
<h2>Methods</h2>
<p>The <code>SVGLinearGradientElement</code> interface do not provide any specific methods.</p>
<h2 name="Browser_compatibility">Browser compatibility</h2>
<p>{{ CompatibilityTable() }}</p>
<div id="compat-desktop">
<table class="compat-table"> <tbody> <tr> <th>Feature</th> <th>Chrome</th> <th>Firefox (Gecko)</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari (WebKit)</th> </tr> <tr> <td>Basic support</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> </tr> </tbody>
</table>
</div>
<div id="compat-mobile">
<table class="compat-table"> <tbody> <tr> <th>Feature</th> <th>Android</th> <th>Firefox Mobile (Gecko)</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td>{{ CompatNo() }}</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> </tr> </tbody>
</table>
</div>
Revert to this revision