When we create a Text object, its default value is the empty string.
var text = new Text
Sometimes this makes Safari throw an exception, because we try and draw a canvas with a width/height of zero.
If the image argument is an HTMLCanvasElement object with either a horizontal dimension or a vertical dimension equal to zero, then the implementation must raise an INVALID_STATE_ERR exception.
When we create a
Text
object, its default value is the empty string.Sometimes this makes Safari throw an exception, because we try and draw a canvas with a width/height of zero.
This might apply to Polygons too!