coderef

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: 155
Edge
12–87Not supported
88+Supportedsince Jan 21, 2021
Current: 154
Firefox
1–70Not supported
71+Supportedsince Dec 10, 2019
Current: 157
Safari
1–13Not supported
13.1+Supportedsince Mar 24, 2020
Current: 27
MobileChrome Android
18–87Not supported
88+Supportedsince Jan 19, 2021
Current: 155
Firefox Android
4–68Not supported
79+Supportedsince Jul 28, 2020
Current: 157
Safari iOS
1–12.2Not supported
13+Supportedsince Sep 19, 2019
Current: 27

How 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
}

Sub-features

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

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
SVGClipPathElement1121.531841
SVGClipPathElement.clipPathUnits1121.531841
SVGClipPathElement.transform1121.531841
clip-path55793.59.15549.3
clip-path.basic_shape5579549.155549.3
clip-path.html_elements55793.59.15549.3
clip-path.none55793.59.15549.3
clip-path.path88887113.1887913
clip-path.svg_elements5579529.155529.3
clipPath1121.531843
clipPath.clipPathUnits1121.531843
clipPath.systemLanguage11212318143
svg.global_attributes.clip-path231252725527