Closed T1mVo closed 3 months ago
looks like it is creating a svg file to produce shadow effect. interesting
The crafted svg background doesn't looks like shadow in chrome. It also looks the same in official svg export. I think this is harbinger's bug
I'm closing this issue because it looks like it's upstream's bug. I change the 5pt 5pt
to 5 5
and it works. see also https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stdDeviation
Please also report this bug to harbinger!
Thank you. I wasnt sure where to file this bug because it worked in the PDF and in Inkscape. I didnt think about checking the error messages in the browser. I will file a bug at harbingers repo.
Describe the bug I was using harbinger to create boxes with a box-shadow and noticed that the preview differs from the final PDF.
Preview:![image](https://github.com/Enter-tainer/typst-preview/assets/94936637/9462bd30-76b6-4e1f-a98c-2133540d4525)
PDF:![image](https://github.com/Enter-tainer/typst-preview/assets/94936637/d27a62e8-9979-4575-9e3d-2c81c1b6b09c)
This does not seem like a bug in Typst itself as a SVG export looks fine in Inkscape but not Edge or Typst Preview.
SVG in Inkscape (hard to see the shadows but they are there):![image](https://github.com/Enter-tainer/typst-preview/assets/94936637/3af52660-a83a-4cea-bba0-ad6a608e07fc)
To Reproduce
typst-preview extension version:
v0.11.3