I'm trying to use the CSS property clip-path
, but I get an Invalid property value
error in Chrome.
Here's a small demo:
<!-- begin snippet: js hide: false --> <!-- language: lang-css -->.clip-me {
clip-path: inset(0px 50px 50px 0px); /* top, right, bottom, left */
}
<!-- language: lang-html -->
<img class="clip-me" src="http://i.stack.imgur.com/MnWjF.png" width="100">
<!-- end snippet -->
Note: This is different from this question on clip-path does not work with chrome, because it's specifically asking about how to apply clip path using SVG (not CSS)
According to Can I Use, it should work in chrome.