shape()
Newly availableSince 202685% of users
A function used in 'clip-path' and other properties to define custom 2D shapes using commands like 'move', 'line' and 'curve'. It's basically like writing SVG paths directly in CSS.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since February 2026. Widely available around August 2028.
The old way and the modern waySee the snippet: Path shapes without SVG clip paths →
Old way 7 lines
/* path() uses absolute px — not responsive */
.hero {
clip-path: path(
"M 0 0 L 800 0 L 800 360 Q 400 420 0 360 Z"
);
/* Breaks on resize */
}Modern 9 lines
.hero {
clip-path: shape(
from 0% 0%,
line to 100% 0%,
line to 100% 80%,
curve to 0% 80% with 50% 105%,
close
);
}See how modern your own CSS is.Check your CSS →
Quick example
.custom-bg {
/* Defines a triangle using the shape() function */
clip-path: shape(from 0 0, line to 100% 0, line to 50% 100%, close);
}Related snippet
Path shapes without SVG clip pathsLayout →shape() browser support
BaselineNewly availableSince 2026 this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.Works in all modern browsers. May need a fallback for older browsers.
Usage85%of people can use this15% use a browser without it.
Browsers
135+
148+
18.4+
135+Mobile
135+Android
148+Android
18.4+iOS
Interop 2026 focus area. All major browsers are actively working to fix cross-browser inconsistencies for this feature in 2026. Learn more →