Reputation: 575
My SVG with clippath on an image is working on all browsers except for Safari. I've tried implementing the clippath with -webkit
but that does not make any difference. Below is a JSfiddle for reference.
Upvotes: 0
Views: 67
Reputation: 33034
It works on Safari too if you close the image tag and use xlink:href
instead of href
.
<image width="100%" height="100%" style="clip-path: url(#clip-path-02);" preserveAspectRatio="xMinYMin slice" xlink:href="https://source.unsplash.com/random" />
Upvotes: 2