bubkoo / html-to-image

✂️ Generates an image from a DOM node using HTML5 canvas and SVG.
MIT License
5.39k stars 503 forks source link

CSS shadows not rendered on mobile #454

Open FilippoSalvarani21 opened 4 months ago

FilippoSalvarani21 commented 4 months ago

CSS text-shadow and box-shadow are not rendered on mobile devices. Tested on iOS Safari, Chrome and Firefox.

vivcat[bot] commented 4 months ago

👋 @FilippoSalvarani21

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. To help make it easier for us to investigate your issue, please follow the contributing guidelines.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

ArtemisGraphic commented 4 months ago

I tried do replace text-shadow with drop-shadow filter. drop-shadow gets rendered but on mobile the text is low quality.

With filter photo_2024-02-24 22 08 57

Without filter photo_2024-02-24 22 09 00