coderef

clipLimited availability

The clip CSS property sets the visible area of an absolutely positioned element.

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

Discouraged: The CSS Masking specification deprecated the clip property. Use instead: clip-path

Browser support

DesktopChrome
1+Supportedsince Dec 11, 2008
Current: 155
Edge
12–18Not supported
79+Supportedsince Jan 15, 2020
Current: 154
Firefox
1+Supportedsince Nov 9, 2004
Current: 157
Safari
1–1.2Not supported
1.3+Supportedsince Apr 15, 2005
Current: 27
MobileChrome Android
18+Supportedsince Jun 27, 2012
Current: 155
Firefox Android
4+Supportedsince Mar 29, 2011
Current: 157
Safari iOS
1+Supportedsince Jun 29, 2007
Current: 27

How to use

Support is still inconsistent across browsers. Use feature detection and test carefully.

Example

Full syntax and examples are on MDN: clip.

Feature detection

CSS · check before using
@supports (clip: initial) {
  /* styles that rely on clip */
}

/* or in JavaScript */
if (CSS.supports("clip", "initial")) {
  // use it
}

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
clip112111841
clip.auto179111841
<shape>11211.31841
<shape>.rect11211.31841