html2canvas icon indicating copy to clipboard operation
html2canvas copied to clipboard

Add support for clip-path

Open knokit opened this issue 6 years ago • 18 comments

It seems that clip-path is not currently supported. Is there any plan to implement it?

I found this 2 related issues (closed), in which more people expressed their interest in this function:

knokit avatar Sep 25 '19 13:09 knokit

Is this feature ready?

ojas-gulati-b avatar Oct 21 '19 12:10 ojas-gulati-b

+1

tman16 avatar Jan 28 '20 23:01 tman16

Thanks for an awesome library! Just wanted to add to the choras of people who'd love this feature. We're converting a highcharts chart to PDF, and the chart uses clip-path. There are some errors in how the graphs appear in the outputted PDF, and having this feature would solve them.

zorent-zebra avatar Apr 07 '20 14:04 zorent-zebra

+1

Thul999 avatar May 24 '20 22:05 Thul999

+1

domozhirov avatar May 28 '20 11:05 domozhirov

In my testing I've noticed clip-path works fine for SVGs, as long as the reference is internal (e.g. clip-path: url(#clipPathId) instead of clip-path: url(https://this.website.url.com#clipPathId)). Haven't tried to get CSS clip-path working but this could be a valid workaround.

joswhite avatar Mar 11 '21 15:03 joswhite

I still cannot make it work even it's reference to internal

xicond avatar Mar 17 '21 11:03 xicond

+1

androidfanatic avatar May 24 '21 05:05 androidfanatic

+1

muhammad-usman-anwar avatar Aug 21 '21 00:08 muhammad-usman-anwar

+1

ArtemisGraphic avatar Sep 09 '21 09:09 ArtemisGraphic

+1

david-storm94 avatar Oct 03 '21 18:10 david-storm94

+1

ActivatedDigital avatar Oct 11 '21 09:10 ActivatedDigital

+1

quangtrieu98 avatar Oct 26 '21 07:10 quangtrieu98

+1

Sameh16 avatar May 01 '23 12:05 Sameh16

+1

kshitizizz avatar Jul 15 '24 12:07 kshitizizz

+1

shohamyamin avatar Nov 18 '24 19:11 shohamyamin

+1

johnhuang42 avatar May 13 '25 10:05 johnhuang42

@niklasvh Please fix this issue soon

johnhuang42 avatar May 13 '25 10:05 johnhuang42