Re:CSS lengths in Gecko are limited to 17,895,697 pixels (2010)
by jacquesm on Sunday January 08, 2023 @06:38AM
(#34298253)
This may seem like a ridiculous complaint, but I actually ran into a similar limit in Chrome with respect to the width of a canvas and had to pull all kinds of nasty tricks to get around it.
[ Parent
| on HN ]
Re:CSS lengths in Gecko are limited to 17,895,697 pixels (2010)
by tonto on Sunday January 08, 2023 @12:34PM
(#34301093)
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)
Re:CSS lengths in Gecko are limited to 17,895,697 pixels (2010)
by jacquesm on Sunday January 08, 2023 @12:47PM
(#34301237)
I tried to render a piece of music horizontally on one canvas. That didn't work past a very low limit. In the end I chopped it up into multiple canvases and scroll at most two of them at the time (there is some risk of artifacts at the point where they meet, unfortunately).