coderef

path()Limited availability

The path() CSS shape function creates a shape for clip-path, shape-outside, and the SVG attribute d.

Not yet supported in all major browsers — check the table and provide a fallback.

Browser support

DesktopChrome
1–87Not supported
88+Supportedsince Jan 19, 2021
Current: 155
Edge
12–87Not supported
88+Supportedsince Jan 21, 2021
Current: 154
Firefox
1–96Not supported
97+Supportedsince Feb 8, 2022
Current: 157
Safari
✕Not supportedup to 27
Current: 27
MobileChrome Android
18–87Not supported
88+Supportedsince Jan 19, 2021
Current: 155
Firefox Android
4–96Not supported
97+Supportedsince Feb 8, 2022
Current: 157
Safari iOS
✕Not supportedup to 27
Current: 27

How to use

Not supported in Safari, Safari iOS. Use feature detection below and provide a fallback (or a polyfill) for those browsers.

Example

Full syntax and examples are on MDN: path.

Feature detection

There’s no simple runtime check for this feature; rely on the support table and test in your target browsers.

Sub-features

Support for each part of the feature (4). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
<basic-shape>.path52797213.1527913
<basic-shape>.path.clip-path88887213.1887913
<basic-shape>.path.d527997✕5297✕
<basic-shape>.path.offset-path56797216567916