マークアップに画像があります:
<img src="http://img-url/img.jpg" />
これは私のCSSです:
img {
clip-path: polygon(70% 0%, 60% 40%, 90% 90%, 0% 50%) fill-box;
}
パーツを外せば使えfill-boxます。それで、私はそれを間違った方法で使用していますか?MDN の構文は次のようです。
<clip-source> | [ <basic-shape> || <geometry-box> ] | none
where
<clip-source> = <url>
<basic-shape> = <inset()> | <circle()> | <ellipse()> | <polygon()>
<geometry-box> = <shape-box> | fill-box | stroke-box | view-box
プロパティへのリンク: https://developer.mozilla.org/en/docs/Web/CSS/clip-path
私はそれを正しく使用していませんか?何を変更する必要がありますか?