HTML5 canvases are probably subject to different rules. I have definitely run into canvas limits also. this stackoverflow from 2014 shows some limits https://stackoverflow.com/a/11585939/2129219 (looks updated in 2018 here https://github.com/jhildenbiddle/canvas-size#test-results)