negative sWidth & sHeight optional arguments for 9-argument syntax does not flip image. #37873
Labels
Content:WebAPI
Web API docs
goal: accuracy
(Experimental label) Issues about inaccurate/incorrect content.
help wanted
If you know something about this topic, we would love your help!
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage
What specific section or headline is this issue about?
#swidth & #sheight
What information was incorrect, unhelpful, or incomplete?
it is stated under both optional arguments sWidth & sHeight that "A negative value will flip the image.". Using firefox, this does not occur and the image is simply displayed in its original size/transform.
What did you expect to see?
I expected the image to flip when given negative values.
Do you have any supporting links, references, or citations?
row 21 in the Js section has a negative width given but image remains the same as without negative values.
Do you have anything more you want to share?
No response
MDN metadata
Page report details
en-us/web/api/canvasrenderingcontext2d/drawimage
The text was updated successfully, but these errors were encountered: