chart-tool
chart-tool copied to clipboard
Ghost text annotations
Text annotations leave a ghost version of themselves sometimes (see image), but only if the annotation uses tspan
s. Think it has something to do with missing x
, y
, dx
, or dy
values for the tspan
vs. text
element.
Only happens on iPhone/mobile Safari (and perhaps other mobile Webkit browsers?).
I noticed this on a few stories on the weekend and I was able to recreate it using the XCode simulator (see video).
https://user-images.githubusercontent.com/12213371/168645578-a533ee7a-6122-48d1-89af-b28271340162.mov
Seems to be related to the multiline text-shadow as mentioned in this bug report https://stackoverflow.com/questions/70760967/duplication-of-svg-text-paths-on-ios-safari
I'd be happy to put up a PR and try to achieve the same shadow in a different way (although removing the shadow class didn't seem to visually change anything, at least in Safari)
I've also seen this pretty consistently on Chrome desktop (Mac), where the shadow seems to be having an unintended appearance. It's more obvious when the background isn't white.
With shadow | Without shadow |
---|---|
![]() |
![]() |