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: 155Edge
12–87Not supported
88+Supportedsince Jan 21, 2021
Current: 154Firefox
1–96Not supported
97+Supportedsince Feb 8, 2022
Current: 157Safari
✕Not supportedup to 27
Current: 27MobileChrome Android
18–87Not supported
88+Supportedsince Jan 19, 2021
Current: 155Firefox Android
4–96Not supported
97+Supportedsince Feb 8, 2022
Current: 157Safari iOS
✕Not supportedup to 27
Current: 27How 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.
Documentation (MDN)
Specification
Sub-features
Support for each part of the feature (4). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| <basic-shape>.path | 52 | 79 | 72 | 13.1 | 52 | 79 | 13 |
| <basic-shape>.path.clip-path | 88 | 88 | 72 | 13.1 | 88 | 79 | 13 |
| <basic-shape>.path.d | 52 | 79 | 97 | ✕ | 52 | 97 | ✕ |
| <basic-shape>.path.offset-path | 56 | 79 | 72 | 16 | 56 | 79 | 16 |