fix safari foreignObject scaling workaround