MDN will be in maintenance mode on Thursday September 21st, starting at 10 AM Pacific / 5 PM UTC, for about 1 hour.


The <feDropShadow> filter primitive creates a drop shadow of the input image. It is a shorthand filter, and is defined in terms of combinations of other filter primitives.

The result of the <feDropShadow> filter is equivalent to the following:

<feGaussianBlur in="alpha-channel-of-feDropShadow-in"
<feOffset dx="dx-of-feDropShadow" dy="dy-of-feDropShadow"
<feFlood flood-color="flood-color-of-feDropShadow"
<feComposite in2="offsetblur" operator="in"/>
  <feMergeNode in="in-of-feDropShadow"/>

Usage context

CategoriesFilter primitive element
Permitted contentAny number of the following elements, in any order:
<animate>, <script>, <set>


Global attributes

Specific attributes

DOM Interface

This element implements the SVGFEDropShadowElement interface.



<svg width="200" height="200" xmlns="">
    <filter id="shadow">
      <feDropShadow dx="4" dy="8" stdDeviation="4"/>

  <circle cx="50%" cy="50%" r="80"
      style="fill:blue; filter:url(#shadow);"/>



Specification Status Comment
Filter Effects Module Level 1
The definition of '<feDistantLight>' in that specification.
Working Draft Initial definition

Browser compatibility

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) No support (Yes) No support (Yes) ?
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support ? ? ? ? ?

See also

Document Tags and Contributors

 Contributors to this page: quitedensepoint, Sebastianz
 Last updated by: quitedensepoint,