The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.


< svg‎ | elements
Jump to: navigation, search


This article is In Progress.

Needs Summary: This article does not have a summary. Summaries give a brief overview of the topic and are automatically included on some listing pages that link to this article.

Overview Table

DOM Interface SVGElement


This example shows a simple text element and two morphology filters applied to the same text. The first filter thins the text with an operator value of erode and a radius value of 1. The second filter thickens the text with an operator value of dilate and and radius value of 1.2.

The image will look like this.

        <svg width="400" height="400">
                <filter id="MyFilter1" filterUnits="userSpaceOnUse" x="50" y="50" width="300" height="300">
                    <feMorphology operator="erode" radius="1"  />
                <filter id="MyFilter2" filterUnits="userSpaceOnUse" x="50" y="50" width="300" height="300">
                    <feMorphology operator="dilate" radius="1.2"  />
            <g font-family="Verdana" font-size="36" stroke="black" stroke-width="2">
                <text x="50" y="50">
                <text x="50" y="150" filter="url(#MyFilter1)">
                <text x="50" y="250" filter="url(#MyFilter2)">



You can specify thickness or thinness by using the operator property.

You can specify how much you what to thicken or thin by using the radius, radiusX, and radiusY properties.


Standards information


The SVGFEMorphologyElement object has these properties:

  • height: Gets or sets the height of an element.
  • in1: Identifies input for the given filter primitive.
  • operator: Specifies the operation of whether to thin or thicken.
  • radiusX: Specifies the thickening or thinning you want to apply in the X direction.
  • radiusY: Specifies the thickening or thinning you want to apply in the Y direction.
  • result: Provides a reference for the output result of a filter.
  • width: Defines the width of an element.
  • x: Gets or sets the x-coordinate value.
  • y: Gets or sets the y-coordinate value.

See also

Related articles


  • feMorphology


This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]