The web platform test wpt/2dcontext/drawing-images-to-the-canvas/drawimage_html_image_9.html states that when the destination rectangle in drawImage has negative width and height, an exception should be raised and nothing is drawn (the original test is missing a drawImage param, see the attached test instead).
Chrome, Safari and Opera do not pass the test. They do not raise an error, but they do not draw anything and continue.
Firefox, IE and Edge do not pass the test. They do not raise an error, but they draw the image partially on the canvas.
Apparently, no browser is raising an exception, but they do behave differently.
|
Deleted:
drawimage_html_image_9.html
898 bytes
|
|
Deleted:
2x2.png
1.5 KB
|
|
Deleted:
Chromium.png
15.0 KB
|
|
Deleted:
Firefox.png
14.8 KB
|
|
Deleted:
Opera.png
18.3 KB
|
|
Deleted:
Safari.png
66.4 KB
|
|
Deleted:
IE.PNG
8.8 KB
|
|
Deleted:
Edge.PNG
5.2 KB
|
Comment 1 by f...@opera.com
, Sep 14 2017