We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS


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

The <hatchpath> SVG element defines a hatch path used by the <hatch> element.

Usage context

Permitted contentAny number of the following elements, in any order:
Animation elements
Descriptive elements
<script>, <style>


Global attributes

Specific attributes

DOM Interface

This element implements the SVGHatchpathElement 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 '<hatchpath>' in that specification.
Candidate Recommendation Initial definition

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support No No No No No ?
d ? ? ? ? ? ?
offset ? ? ? ? ? ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support ? No No No No ? ?
d ? ? ? ? ? ? ?
offset ? ? ? ? ? ? ?

See also

Document Tags and Contributors

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