html2pdf icon indicating copy to clipboard operation
html2pdf copied to clipboard

Problems with CSS hacks : linear-gradient & text-fill

Open nikonico opened this issue 8 years ago • 1 comments

Hi, I'm trying to use some CSS hacks for an electron project. Here's the result in electron : screenshot_20181121_123938 https://i.postimg.cc/xTDgsV0y/Screenshot-20181121-123938.png Here's the CSS :

/* For the s */
-webkit-text-fill-color: black;
-webkit-text-stroke-color: rgb(255, 255, 255);
-webkit-text-stroke-width: 1.5px;

/* For the oi */
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background: -webkit-linear-gradient(top, rgb(147, 203, 193) 60%, white 40%);

But here's what I get in the PDF : screenshot_20181121_124755 https://i.postimg.cc/bvwjs2WJ/Screenshot-20181121-124755.png

The 's' is not displayed (I think the outline doesn't work) and for the oi, it's just not what I'm expecting. Do you have any ideas why and how I could fix this?

Thank you very much for your help. Cheers, Niko

nikonico avatar Nov 21 '18 03:11 nikonico

CSS hack will not works. sorry

spipu avatar Feb 19 '19 15:02 spipu