We're looking for a person or people to help audit MDN to find places we could speed up. Is this you or someone you know? Check out the RFP: https://mzl.la/2IHcMiE


This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The <hatch> SVG element is used to fill or stroke an object using one or more pre-defined paths that are repeated at fixed intervals in a specified direction to cover the areas to be painted.

Hatches defined by the <hatch> element can then referenced by the fill and stroke CSS properties on a given graphics element to indicate that the given element shall be filled or stroked with the hatch. Paths are defined by <hatchpath> elements.

Usage context

CategoriesNever-rendered element, Paint server element
Permitted contentAny number of the following elements, in any order:
Animation elements
Descriptive elements
<hatchpath>, <script>, <style>


Global attributes

Specific attributes

DOM Interface

This element implements the SVGHatchElement interface.



<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg">
    <hatch id="hatch" hatchUnits="userSpaceOnUse" pitch="5"
      <hatchpath stroke="#a080ff" stroke-width="2"/>

  <rect fill="url(#hatch)" stroke="black" stroke-width="2"
     x="10%" y="10%" width="80%" height="80%" />



Specification Status Comment
Scalable Vector Graphics (SVG) 2
The definition of '<hatch>' in that specification.
Candidate Recommendation Initial definition

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari
Basic support No support[1] No support[2] No support[3] No support No support[1] ?
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support ?[1] No support[3] No support No support ?

[1] Blink does not yet implement this feature. See Chromium bug 367762.

[2] EdgeHTML does not yet implement this feature. See Edge bug 9107381.

[3] Gecko does not yet implement this feature. See bug 1239147.

See also

Document Tags and Contributors

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