better compatibility for Canvas.context.setLineDash