Bug 205941 - Blurry SVG image when shadows enabled
Summary: Blurry SVG image when shadows enabled
Status: RESOLVED DUPLICATE of bug 193492
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: Safari 13
Hardware: Mac macOS 10.15
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-01-08 11:25 PST by Lucas Johnston
Modified: 2023-08-21 10:35 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lucas Johnston 2020-01-08 11:25:20 PST
I've exported two identical SVGs from my design tool, Figma, except one has shadows enabled and one does not.
The image with shadows looks compressed and is nowhere near as clean as the standard option - this means I don't have a clear way to add shadows to my svgs (as it's a rounded shape and the css properties apply to the whole square of allocated space, leaving white borders).

SVG with shadows: https://github.com/lucasjohnston/temp-svgs/blob/master/shadow.svg
SVG without shadows: https://github.com/lucasjohnston/temp-svgs/blob/master/no_shadow.svg
Screenshot of comparison within Safari: https://github.com/lucasjohnston/temp-svgs/blob/master/Screenshot%202020-01-08%20at%2019.20.06.png
Screenshot of comparison within VS Code's previewer (for comparison): https://github.com/lucasjohnston/temp-svgs/blob/master/Screenshot%202020-01-08%20at%2019.23.34.png
Comment 1 Simon Fraser (smfr) 2020-01-09 10:35:04 PST
I guess shadows are triggering a code path that fails to take the 2x Retina scale factor into account.
Comment 2 Brent Fulgham 2022-07-01 09:24:30 PDT
This seems to still be an issue.
Comment 3 Radar WebKit Bug Importer 2022-07-01 09:24:44 PDT
<rdar://problem/96296736>
Comment 4 Simon Fraser (smfr) 2023-08-21 10:35:22 PDT

*** This bug has been marked as a duplicate of bug 193492 ***