Canvas
clear
on resize not mentioned
#32603
Labels
Content:WebAPI
Web API docs
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/HTMLCanvasElement/width
What specific section or headline is this issue about?
1st (main)
What information was incorrect, unhelpful, or incomplete?
A side-effect of assigning a value to that property
What did you expect to see?
It's missing the fact that some (all?) browsers
clear
when changing in-memory dimensions.This may include h (not tested)
Do you have any supporting links, references, or citations?
https://stackoverflow.com/questions/5517783/preventing-canvas-clear-when-resizing-window
Do you have anything more you want to share?
This technique for preserving content after resizing, which is very helpful as a tutorial
MDN metadata
Page report details
en-us/web/api/htmlcanvaselement/width
The text was updated successfully, but these errors were encountered: