When setting the size of the canvas size in IE to a negative value, the dreaded warning sign appears in the lower left corner of the browser with the "Error on page" message. This commit checks for a negative sign on the width and height and, if one exists, does not set the width or height.
Fix a bug with negative sizes in Internet Explorer versions 5.5, 6, 7…
…, 8, and 9.
With svg would happen the same. We can't check everywhere if the user inputs invalid values. Thanks anyway.