html2canvas-pro icon indicating copy to clipboard operation
html2canvas-pro copied to clipboard

`clip-path` CSS property support

Open noway opened this issue 10 months ago • 1 comments

It would be great to implement https://developer.mozilla.org/en-US/docs/Web/CSS/clip-path support in html2canvas-pro.

Cheers.

noway avatar Feb 03 '25 23:02 noway

I have a class name that uses a clip-path like the following. Is there any way to retain it when exporting to an image?

clip-path: path("M 31.12 0 L 43.0221 0 C 56.5711 0 61.6508 7.04765 57.3662 19.9014 L 52.7814 33.6559 C 48.4968 46.5096 46.429 48 32.88 48 L 20.9779 48 C 7.42888 48 2.34922 40.9524 6.63379 28.0986 L 11.2186 14.3441 C 15.5032 1.49038 17.571 0 31.12 0");

nhannt201 avatar Jul 14 '25 09:07 nhannt201