clip-pathBaseline · Widely available
The clip-path CSS property and SVG attribute set the visible area of an element. Everything outside the area will be hidden.
Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Jan 21, 2021. Widely available since Jul 21, 2023.
Browser support
DesktopChrome
1–87Not supported
88+Supportedsince Jan 19, 2021
Current: 155Edge
12–87Not supported
88+Supportedsince Jan 21, 2021
Current: 154Firefox
1–70Not supported
71+Supportedsince Dec 10, 2019
Current: 157Safari
1–13Not supported
13.1+Supportedsince Mar 24, 2020
Current: 27MobileChrome Android
18–87Not supported
88+Supportedsince Jan 19, 2021
Current: 155Firefox Android
4–68Not supported
79+Supportedsince Jul 28, 2020
Current: 157Safari iOS
1–12.2Not supported
13+Supportedsince Sep 19, 2019
Current: 27How to use
This feature is Baseline widely available — use it freely, no fallback needed.
Example
Full syntax and examples are on MDN: SVGClipPathElement.
Feature detection
CSS · check before using
@supports (clip-path: initial) {
/* styles that rely on clip-path */
}
/* or in JavaScript */
if (CSS.supports("clip-path", "initial")) {
// use it
}Documentation (MDN)
Specification
Sub-features
Support for each part of the feature (13). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| SVGClipPathElement | 1 | 12 | 1.5 | 3 | 18 | 4 | 1 |
| SVGClipPathElement.clipPathUnits | 1 | 12 | 1.5 | 3 | 18 | 4 | 1 |
| SVGClipPathElement.transform | 1 | 12 | 1.5 | 3 | 18 | 4 | 1 |
| clip-path | 55 | 79 | 3.5 | 9.1 | 55 | 4 | 9.3 |
| clip-path.basic_shape | 55 | 79 | 54 | 9.1 | 55 | 54 | 9.3 |
| clip-path.html_elements | 55 | 79 | 3.5 | 9.1 | 55 | 4 | 9.3 |
| clip-path.none | 55 | 79 | 3.5 | 9.1 | 55 | 4 | 9.3 |
| clip-path.path | 88 | 88 | 71 | 13.1 | 88 | 79 | 13 |
| clip-path.svg_elements | 55 | 79 | 52 | 9.1 | 55 | 52 | 9.3 |
| clipPath | 1 | 12 | 1.5 | 3 | 18 | 4 | 3 |
| clipPath.clipPathUnits | 1 | 12 | 1.5 | 3 | 18 | 4 | 3 |
| clipPath.systemLanguage | 1 | 12 | 12 | 3 | 18 | 14 | 3 |
| svg.global_attributes.clip-path | 23 | 12 | 52 | 7 | 25 | 52 | 7 |