mozilla

Revision 468117 of radial-gradient()

  • Revision slug: Web/CSS/radial-gradient
  • Revision title: radial-gradient
  • Revision id: 468117
  • Created:
  • Creator: roryokane
  • Is current revision? No
  • Comment update examples: formatting and "cover" to "farthest-corner"

Revision Content

{{ CSSRef() }}

Summary

The CSS radial-gradient() function creates an {{ xref_cssimage() }} which represents a gradient of colors radiating from an origin, the center of the gradient. The result of this function is an object of the CSS {{ xref_cssgradient() }} data type.

Radial gradients are defined by their center, the ending shape contour and position, and color stops. The radial gradient consists, going from its center to its ending shape and potentially beyond, of successive uniformly-scaled concentric shapes, identical to the ending shape. Color stops are positioned on a virtual gradient ray going out horizontally of the center and going to the right. Percentages positioning of color stops are relative to the intersection between the ending shape and this gradient ray representing 100%. Each shape is monocolor and defined by the color on the gradient ray it intersects.

Ending shapes can only be circle or ellipse.

Like any other gradient, a CSS radial gradient is not a CSS <color> but an image with no intrinsic dimensions, i. e. it has no natural or preferred size, nor ratio. Its concrete size will match the one of the element it applies to.

The radial-gradient function does not allow repeating gradients. For such a functionality, use the CSS {{ Cssxref("repeating-radial-gradient") }} function.

Syntax

Formal grammar: 
  radial-gradient( [[ circle               || <length> ]                     [ at <position> ]? , | 
                    [ ellipse              || [<length> | <percentage> ]{2}] [ at <position> ]? , |
                    [ [ circle | ellipse ] || <extent-keyword> ]             [ at <position> ]? , |
                                                                               at <position> ,     <color-stop> [ , <color-stop> ]+ )
                   \------------------------------------------------------------------------------/\--------------------------------/
                                 Definition of the contour, size and position of the ending shape         List of color stops  
    
          where <extent-keyword> = closest-corner | closest-side | farthest-corner | farthest-side
            and <color-stop> = <color> [ <percentage> | <length> ]?
Definition of the ending shape
radial-gradient( circle, … )                /* Synonym of radial-gradient( circle farthest-corner, …) */
radial-gradient( ellipse, … )               /* Synonym of radial-gradient( ellipse farthest-corner, …) */
radial-gradient( <extent-keyword>, … )      /* It draws a circle */
radial-gradient( circle radius, … )         /* A centered circle of the given length. It can't be a percentage */
radial-gradient( ellipse x-axis y-axis, … ) /* The two semi-major axis are given, horizontal, then vertical */

Definition of the position of the shape
radial-gradient (… at <position>, … )

Definition of the color stops
radial-gradient (…, <color-stop>)
radial-gradient (…, <color-stop>, <color-stop>)

Values

<position>
A {{ xref_cssposition() }}, interpreted in the same way as {{ Cssxref("background-position") }} or {{ Cssxref("transform-origin") }}. If omitted, the default is center.
<angle>
An angle establishing the gradient line, which extends from the starting point at this angle; this is 0deg by default.
<shape>
The gradient's shape. This is one of circle (meaning that the gradient's shape is a circle with constant radius) or ellipse (meaning that the shape is an axis-aligned ellipse). The default value is ellipse.
<size>
The size of the gradient. This is one of the {{ anch("Size constants") }} listed below.
<color-stop>
Representing a fixed color at a precise position, this value is composed by a {{ Xref_csscolorvalue() }} value, followed by an optional stop position (either a {{ xref_csspercentage() }} or a {{ Xref_csslength() }} along the virtual gradient ray). A percentage of 0%, or a length of 0, represents the center of the gradient, the value 100% the intersection of the ending shape with the virtual gradient ray. Percentage values in-between. are linearily positioned on the gradient ray.
<extent-keyword>
Keywords describing how big the ending shape must be. The possible keywords are:
Constant Description
closest-side The gradient's ending shape meets the side of the box closest to its center (for circles) or meets both the vertical and horizontal sides closest to the center (for ellipses).
closest-corner The gradient's ending shape is sized so it exactly meets the closest corner of the box from its center.
farthest-side Similar to closest-side, except the ending shape is sized to meet the side of the box farthest from its center (or vertical and horizontal sides).
farthest-corner The gradient's ending shape is sized so it exactly meets the farthest corner of the box from its center.
Early drafts included other keywords (cover and contain) as synonyms of the standard farthest-corner and closest-side respectively. Use the standard keywords only, as some implementations have already dropped those older variants.

Examples

circle farthest-corner
background: -webkit-radial-gradient(45px 45px 45deg, circle farthest-corner, aqua 0%, rgba(0, 0, 255, 0) 100%, blue 95%);
background:         radial-gradient(45px 45px 45deg, circle farthest-corner, aqua 0%, rgba(0, 0, 255, 0) 100%, blue 95%);
ellipse farthest-corner
background-image: -webkit-radial-gradient(45px 45px, ellipse farthest-corner, aqua 0%, rgba(0, 0, 255, 0) 100%, blue 95%);
background-image:         radial-gradient(45px 45px, ellipse farthest-corner, aqua 0%, rgba(0, 0, 255, 0) 100%, blue 95%);
470px 47px
background-image: -webkit-radial-gradient(470px 47px, ellipse farthest-corner, rgb(100%,100%,50%) 20%, rgba(90%,60%,60%,.4) 30%, rgb(90%,90%,100%) 60%);
background-image:         radial-gradient(470px 47px, ellipse farthest-corner, rgb(100%,100%,50%) 20%, rgba(80%,60%,60%,.4) 30%, rgb(90%,90%,100%) 60%);
farthest-corner
background: -webkit-radial-gradient(45px 45px, farthest-corner, rgb(255, 0, 0) 0%, rgb(0, 0, 255) 100%);
background:         radial-gradient(45px 45px, farthest-corner, rgb(255, 0, 0) 0%, rgb(0, 0, 255) 100%);
16px radius fuzzy circle
background: -webkit-radial-gradient(circle 16px at 20px 50%, black 0%, black 14px, rgba(0,0,0,0.3) 18px, rgba(0,0,0,0) 19px);
background:         radial-gradient(circle 16px at 20px 50%, black 0%, black 14px, rgba(0,0,0,0.3) 18px, rgba(0,0,0,0) 19px);

Specifications

Specification Status Comment
{{ SpecName('CSS3 Images', '#radial-gradients', 'radial-gradients()') }} {{ Spec2('CSS3 Images') }}  

Browser compatibility

Feature Firefox (Gecko) Chrome Internet Explorer Opera Safari
Basic support (support for the radial-gradient() function, but not necessary with the final syntax) {{ CompatGeckoDesktop("1.9.2") }}{{ property_prefix("-moz") }}[4]
{{ CompatGeckoDesktop("16") }}
10.0 (534.16){{ property_prefix("-webkit") }} [2][4] 10.0 [1] 11.60{{ property_prefix("-o") }} 5.1{{ property_prefix("-webkit") }}[2]
Legacy webkit syntax{{ non-standard_inline() }} {{ CompatNo() }} 3{{ property_prefix("-webkit") }} [2] {{ CompatNo() }} {{ CompatNo() }} 4.0{{ property_prefix("-webkit") }}[2]
at syntax (final standard syntax) {{ CompatGeckoDesktop("10") }}{{ property_prefix("-moz") }}[4]
{{ CompatGeckoDesktop("16") }}
{{ CompatNo() }} 10.0 11.60{{ property_prefix("-o") }}[4]
Presto 2.12 will remove the prefix.
{{ CompatNo() }}

[1] Internet Explorer 5.5 through 9.0 supports proprietary filter: progid:DXImageTransform.Microsoft.Gradient() filter.

[2] WebKit since 528 supports the legacy -webkit-gradient(radial,…) function. See also their current support for radial gradients.

[4] Firefox 3.6 and Webkit implemented, prefixed, an early syntax.

See also

Revision Source

<p>{{ CSSRef() }}</p>
<h2 id="Summary">Summary</h2>
<p>The CSS <code>radial-gradient()</code> function creates an {{ xref_cssimage() }} which represents a gradient of colors radiating from an origin, the <em>center</em> of the gradient. The result of this function is an object of the CSS {{ xref_cssgradient() }} data type.</p>
<p><img alt="" src="/files/3795/radial%20gradient.png" style="width: 396px; height: 176px; float: left;" />Radial gradients are defined by their <em>center</em>, the <em>ending shape</em> contour and position, and <em>color stops</em>. The radial gradient consists, going from its center to its ending shape and potentially beyond, of successive uniformly-scaled concentric shapes, identical to the ending shape. Color stops are positioned on a <em>virtual gradient ray</em> going out horizontally of the center and going to the right. Percentages positioning of color stops are relative to the intersection between the ending shape and this gradient ray representing <code>100%</code>. Each shape is monocolor and defined by the color on the gradient ray it intersects.</p>
<p>Ending shapes can only be <code>circle</code> or <code>ellipse</code>.</p>
<p>Like any other gradient, a CSS radial gradient is not a CSS <span class="lang lang-en"><code><a href="color_value" rel="custom">&lt;color&gt;</a></code> </span> but an image with <a href="/en/CSS/image#no_intrinsic" title="en/CSS/image#no_intrinsic">no intrinsic dimensions</a>, i. e. it has no natural or preferred size, nor ratio. Its concrete size will match the one of the element it applies to.</p>
<p>The <code>radial-gradient</code> function does not allow repeating gradients. For such a functionality, use the CSS {{ Cssxref("repeating-radial-gradient") }} function.</p>
<h2 id="Syntax">Syntax</h2>
<pre class="twopartsyntaxbox">
Formal grammar: 
  radial-gradient( [[ circle               || <a href="/en-US/docs/CSS/length" title="/en-US/docs/CSS/length">&lt;length&gt;</a> ]                     [ at <a href="/en-US/CSS/position_value" title="/en-US/CSS/position_value">&lt;position&gt;</a> ]? , | 
                    [ ellipse              || [<a href="/en-US/docs/CSS/length" title="/en-US/docs/CSS/length">&lt;length&gt;</a> | <a href="/en-US/docs/CSS/percentage" title="/en-US/docs/CSS/percentage">&lt;percentage&gt;</a> ]{2}] [ at <a href="/en-US/CSS/position_value" title="/en-US/CSS/position_value">&lt;position&gt;</a> ]? , |
                    [ [ circle | ellipse ] || &lt;extent-keyword&gt; ]             [ at <a href="/en-US/CSS/position_value" title="/en-US/CSS/position_value">&lt;position&gt;</a> ]? , |
                                                                               at <a href="/en-US/CSS/position_value" title="/en-US/CSS/position_value">&lt;position&gt;</a> ,     &lt;color-stop&gt; [ , &lt;color-stop&gt; ]+ )
                   \------------------------------------------------------------------------------/\--------------------------------/
                                 Definition of the contour, size and position of the ending shape         List of color stops  
    
          where &lt;extent-keyword&gt; = closest-corner | closest-side | farthest-corner | farthest-side
            and<code> &lt;color-stop&gt; = &lt;color&gt; [ &lt;percentage&gt; | &lt;length&gt; ]?</code></pre>
<pre>
<strong>Definition of the ending shape</strong>
radial-gradient( circle, … )                /* Synonym of radial-gradient( circle farthest-corner, …) */
radial-gradient( ellipse, … )               /* Synonym of radial-gradient( ellipse farthest-corner, …) */
radial-gradient( <em>&lt;extent-keyword&gt;</em>, … )      /* It draws a circle */
radial-gradient( circle <em>radius</em>, … )         /* A centered circle of the given length. It can't be a percentage */
radial-gradient( ellipse <em>x-axis</em> <em>y-axis</em>, … ) /* The two semi-major axis are given, horizontal, then vertical */

<strong>Definition of the position of the shape</strong>
radial-gradient (… at &lt;position&gt;, … )

<strong>Definition of the color stops
</strong>radial-gradient (…, &lt;color-stop&gt;)
radial-gradient (…, &lt;color-stop&gt;, &lt;color-stop&gt;)

</pre>
<h3 id="Values">Values</h3>
<dl>
  <dt>
    <code>&lt;position&gt;</code></dt>
  <dd>
    A {{ xref_cssposition() }}, interpreted in the same way as {{ Cssxref("background-position") }} or {{ Cssxref("transform-origin") }}. If omitted, the default is <code>center</code>.</dd>
  <dt>
    &lt;<code>angle</code>&gt;</dt>
  <dd>
    An angle establishing the gradient line, which extends from the starting point at this angle; this is <code>0deg</code> by default.</dd>
  <dt>
    <code>&lt;shape&gt;</code></dt>
  <dd>
    The gradient's shape. This is one of <code>circle</code> (meaning that the gradient's shape is a circle with constant radius) or <code>ellipse</code> (meaning that the shape is an axis-aligned ellipse). The default value is <code>ellipse</code>.</dd>
  <dt>
    <code>&lt;size&gt;</code></dt>
  <dd>
    The size of the gradient. This is one of the {{ anch("Size constants") }} listed below.</dd>
  <dt>
    <code>&lt;color-stop&gt;</code></dt>
  <dd>
    Representing a fixed color at a precise position, this value is composed by a {{ Xref_csscolorvalue() }} value, followed by an optional stop position (either a {{ xref_csspercentage() }} or a {{ Xref_csslength() }} along the virtual gradient ray). A percentage of <code>0%</code>, or a length of <code>0</code>, represents the center of the gradient, the value <code>100%</code> the intersection of the ending shape with the virtual gradient ray. Percentage values in-between. are linearily positioned on the gradient ray.</dd>
  <dt>
    <code>&lt;extent-keyword&gt;</code></dt>
  <dd>
    Keywords describing how big the ending shape must be. The possible keywords are:</dd>
  <dd>
    <table class="standard-table">
      <tbody>
        <tr>
          <th>Constant</th>
          <th>Description</th>
        </tr>
        <tr>
          <td><code>closest-side</code></td>
          <td>The gradient's ending shape meets the side of the box closest to its center (for circles) or meets both the vertical and horizontal sides closest to the center (for ellipses).</td>
        </tr>
        <tr>
          <td><code>closest-corner</code></td>
          <td>The gradient's ending shape is sized so it exactly meets the closest corner of the box from its center.</td>
        </tr>
        <tr>
          <td><code>farthest-side</code></td>
          <td>Similar to closest-side, except the ending shape is sized to meet the side of the box farthest from its center (or vertical and horizontal sides).</td>
        </tr>
        <tr>
          <td><code>farthest-corner</code></td>
          <td>The gradient's ending shape is sized so it exactly meets the farthest corner of the box from its center.</td>
        </tr>
      </tbody>
    </table>
    Early drafts included other keywords (<code>cover</code> and <code>contain</code>) as synonyms of the standard <code><span class="st">farthest-corner</span></code> and <code>closest-side</code> respectively. Use the standard keywords only, as some implementations have already dropped those older variants.</dd>
</dl>
<h2 id="Examples">Examples</h2>
<div style="
background: -webkit-radial-gradient(45px 45px 45deg, circle farthest-corner, aqua 0%, rgba(0, 0, 255, 0) 100%, blue 95%);
background: -moz-radial-gradient(45px 45px 45deg, circle farthest-corner, aqua 0%, rgba(0, 0, 255, 0) 100%, blue 95%);
background: -ms-radial-gradient(45px 45px 45deg, circle farthest-corner, aqua 0%, rgba(0, 0, 255, 0) 100%, blue 95%);
background: -o-radial-gradient(45px 45px 45deg, circle farthest-corner, aqua 0%, rgba(0, 0, 255, 0) 100%, blue 95%);
background: radial-gradient(45px 45px 45deg, circle farthest-corner, aqua 0%, rgba(0, 0, 255, 0) 100%, blue 95%);
text-shadow: 1px 1px 0pt black; color: white; border: 1px solid black;height:5.5em;
">
  circle farthest-corner</div>
<pre>
background: -webkit-radial-gradient(45px 45px 45deg, circle farthest-corner, aqua 0%, rgba(0, 0, 255, 0) 100%, blue 95%);
background:         radial-gradient(45px 45px 45deg, circle farthest-corner, aqua 0%, rgba(0, 0, 255, 0) 100%, blue 95%);
</pre>
<div style="
background: -webkit-radial-gradient(45px 45px, ellipse farthest-corner, aqua 0%, rgba(0, 0, 255, 0) 100%, blue 95%);
background: -moz-radial-gradient(45px 45px, ellipse farthest-corner, aqua 0%, rgba(0, 0, 255, 0) 100%, blue 95%);
background: -ms-radial-gradient(45px 45px, ellipse farthest-corner, aqua 0%, rgba(0, 0, 255, 0) 100%, blue 95%);
background: -o-radial-gradient(45px 45px, ellipse farthest-corner, aqua 0%, rgba(0, 0, 255, 0) 100%, blue 95%);
backgrounde: radial-gradient(45px 45px, ellipse farthest-corner, aqua 0%, rgba(0, 0, 255, 0) 100%, blue 95%);
text-shadow: 1px 1px 0pt black; color: white; border: 1px solid black;height:5.5em;
">
  ellipse farthest-corner</div>
<pre>
background-image: -webkit-radial-gradient(45px 45px, ellipse farthest-corner, aqua 0%, rgba(0, 0, 255, 0) 100%, blue 95%);
background-image:         radial-gradient(45px 45px, ellipse farthest-corner, aqua 0%, rgba(0, 0, 255, 0) 100%, blue 95%);
</pre>
<div style="
background: -webkit-radial-gradient(470px 47px, ellipse farthest-corner, rgb(100%,100%,50%) 20%, rgba(80%,60%,60%,.4) 30%, rgb(90%,90%,100%) 60%); background: -moz-radial-gradient(470px 47px, ellipse farthest-corner, rgb(100%,100%,50%) 20%, rgba(80%,60%,60%,.4) 30%, rgb(90%,90%,100%) 60%); background: -ms-radial-gradient(470px 47px, ellipse farthest-corner, rgb(100%,100%,50%) 20%, rgba(80%,60%,60%,.4) 30%, rgb(90%,90%,100%) 60%); background: -o-radial-gradient(470px 47px, ellipse farthest-corner, rgb(100%,100%,50%) 20%, rgba(80%,60%,60%,.4) 30%, rgb(90%,90%,100%) 60%); background: radial-gradient(470px 47px, ellipse farthest-corner, rgb(100%,100%,50%) 20%, rgba(80%,60%,60%,.4) 30%, rgb(90%,90%,100%) 60%); text-shadow: 1px 1px 0pt black; color: white; border: 1px solid black;height:5.5em;
">
  470px 47px</div>
<pre>
background-image: -webkit-radial-gradient(470px 47px, ellipse farthest-corner, rgb(100%,100%,50%) 20%, rgba(90%,60%,60%,.4) 30%, rgb(90%,90%,100%) 60%);
background-image:         radial-gradient(470px 47px, ellipse farthest-corner, rgb(100%,100%,50%) 20%, rgba(80%,60%,60%,.4) 30%, rgb(90%,90%,100%) 60%);
</pre>
<div style="
background: -webkit-radial-gradient(45px 45px, farthest-corner, rgb(255, 0, 0) 0%, rgb(0, 0, 255) 100%) repeat scroll 0% 0% transparent;
background: -moz-radial-gradient(45px 45px, farthest-corner, rgb(255, 0, 0) 0%, rgb(0, 0, 255) 100%) repeat scroll 0% 0% transparent;
background: -ms-radial-gradient(45px 45px, farthest-corner, rgb(255, 0, 0) 0%, rgb(0, 0, 255) 100%) repeat scroll 0% 0% transparent;
background: -o-radial-gradient(45px 45px, farthest-corner, rgb(255, 0, 0) 0%, rgb(0, 0, 255) 100%) repeat scroll 0% 0% transparent; background: radial-gradient(45px 45px, farthest-corner, rgb(255, 0, 0) 0%, rgb(0, 0, 255) 100%) repeat scroll 0% 0% transparent; text-shadow: 1px 1px 0pt black; color: white; border: 1px solid black;height:5.5em;
">
  farthest-corner</div>
<pre>
background: -webkit-radial-gradient(45px 45px, farthest-corner, rgb(255, 0, 0) 0%, rgb(0, 0, 255) 100%);
background:         radial-gradient(45px 45px, farthest-corner, rgb(255, 0, 0) 0%, rgb(0, 0, 255) 100%);
</pre>
<div style="
background: -webkit-radial-gradient(circle 16px at 20px 50%, black 0%, black 14px, rgba(0,0,0,0.3) 18px, rgba(0,0,0,0) 19px) no-repeat scroll 0% 0% transparent;
background: -moz-radial-gradient(circle 16px at 20px 50%, black 0%, black 14px, rgba(0,0,0,0.3) 18px, rgba(0,0,0,0) 19px) no-repeat scroll 0% 0% transparent;
background: -ms-radial-gradient(circle 16px at 20px 50%, black 0%, black 14px, rgba(0,0,0,0.3) 18px, rgba(0,0,0,0) 19px) no-repeat scroll 0% 0% transparent;
background: -o-radial-gradient(circle 16px at 20px 50%, black 0%, black 14px, rgba(0,0,0,0.3) 18px, rgba(0,0,0,0) 19px) no-repeat scroll 0% 0% transparent; background: radial-gradient(circle 16px at 20px 50%, black 0%, black 14px, rgba(0,0,0,0.3) 18px, rgba(0,0,0,0) 19px) no-repeat scroll 0% 0% transparent; text-shadow: 1px 1px 0pt black; color: grey; border: 1px solid black;height:5.5em;
">
  16px radius fuzzy circle</div>
<pre>
background: -webkit-radial-gradient(circle 16px at 20px 50%, black 0%, black 14px, rgba(0,0,0,0.3) 18px, rgba(0,0,0,0) 19px);
background:         radial-gradient(circle 16px at 20px 50%, black 0%, black 14px, rgba(0,0,0,0.3) 18px, rgba(0,0,0,0) 19px);
</pre>
<h2 id="Specifications">Specifications</h2>
<table class="standard-table">
  <thead>
    <tr>
      <th scope="col">Specification</th>
      <th scope="col">Status</th>
      <th scope="col">Comment</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>{{ SpecName('CSS3 Images', '#radial-gradients', 'radial-gradients()') }}</td>
      <td>{{ Spec2('CSS3 Images') }}</td>
      <td>&nbsp;</td>
    </tr>
  </tbody>
</table>
<h2 id="Browser_compatibility">Browser compatibility</h2>
<table class="compat-table">
  <tbody>
    <tr>
      <th>Feature</th>
      <th>Firefox (Gecko)</th>
      <th>Chrome</th>
      <th>Internet Explorer</th>
      <th>Opera</th>
      <th>Safari</th>
    </tr>
    <tr>
      <td>Basic support (support for the <code>radial-gradient()</code> function, but not necessary with the final syntax)</td>
      <td>{{ CompatGeckoDesktop("1.9.2") }}{{ property_prefix("-moz") }}<sup><a href="#bc4">[4]</a></sup><br />
        {{ CompatGeckoDesktop("16") }}</td>
      <td>10.0 (534.16){{ property_prefix("-webkit") }} <sup><a href="#bc2">[2]</a></sup><sup><a href="#bc4">[4]</a></sup></td>
      <td>10.0 <sup><a href="#bc1">[1]</a></sup></td>
      <td>11.60{{ property_prefix("-o") }}</td>
      <td>5.1{{ property_prefix("-webkit") }}<sup><a href="#bc2">[2]</a></sup></td>
    </tr>
    <tr>
      <td><a class="external" href="http://www.webkit.org/blog/175/introducing-css-gradients/">Legacy webkit syntax</a>{{ non-standard_inline() }}</td>
      <td>{{ CompatNo() }}</td>
      <td>3{{ property_prefix("-webkit") }} <sup><a href="#bc2">[2]</a></sup></td>
      <td>{{ CompatNo() }}</td>
      <td>{{ CompatNo() }}</td>
      <td>4.0{{ property_prefix("-webkit") }}<sup><a href="#bc2">[2]</a></sup></td>
    </tr>
    <tr>
      <td><code>at </code>syntax (final standard syntax)</td>
      <td>{{ CompatGeckoDesktop("10") }}{{ property_prefix("-moz") }}<sup><a href="#bc4">[4]</a></sup><br />
        {{ CompatGeckoDesktop("16") }}</td>
      <td>{{ CompatNo() }}</td>
      <td>10.0</td>
      <td>11.60{{ property_prefix("-o") }}<sup><a href="#bc4">[4]</a></sup><br />
        Presto 2.12 will remove the prefix.</td>
      <td>{{ CompatNo() }}</td>
    </tr>
  </tbody>
</table>
<p><sup><a name="bc1">[1]</a></sup> Internet Explorer 5.5 through 9.0 supports proprietary <a class="external" href="http://msdn.microsoft.com/en-us/library/ms532997(VS.85,loband).aspx"><code>filter: progid:DXImageTransform.Microsoft.Gradient()</code> filter</a>.</p>
<p><sup><a name="bc2">[2]</a></sup> WebKit since 528 supports the legacy <a class="external" href="https://developer.apple.com/library/safari/documentation/InternetWeb/Conceptual/SafariVisualEffectsProgGuide/Gradients/Gradient.html#//apple_ref/doc/uid/TP40008032-CH10-SW34"><code>-webkit-gradient(radial,…)</code> function</a>. See also their <a href="https://developer.apple.com/library/safari/#documentation/InternetWeb/Conceptual/SafariVisualEffectsProgGuide/Gradients/Gradient.html#//apple_ref/doc/uid/TP40008032-CH10-SW15" title="https://developer.apple.com/library/safari/#documentation/InternetWeb/Conceptual/SafariVisualEffectsProgGuide/Gradients/Gradient.html#//apple_ref/doc/uid/TP40008032-CH10-SW15">current support</a> for radial gradients.</p>
<p><sup><a name="bc4">[4]</a></sup>&nbsp;Firefox 3.6 and Webkit implemented, prefixed, an early syntax.</p>
<h2 id="See_also">See also</h2>
<ul>
  <li><a href="/en/CSS/Using_CSS_gradients" title="en/Using gradients">Using CSS gradients</a>, {{ cssxref("repeating-radial-gradient") }}, {{ cssxref("linear-gradient") }}</li>
  <li>WebKit's original proposal: <a class="external" href="http://webkit.org/blog/175/introducing-css-gradients/" title="http://webkit.org/blog/175/introducing-css-gradients/">http://webkit.org/blog/175/introducing-css-gradients/</a></li>
  <li>WebKit's new implementation:&nbsp;<a class="external" href="http://webkit.org/blog/1424/css3-gradients/" title="http://webkit.org/blog/1424/css3-gradients/">http://webkit.org/blog/1424/css3-gradients/</a></li>
</ul>
Revert to this revision