Currently, most platforms cap canvas width/height to ~32k but the mac ports cap by area ~32k*~8k. For reference, this bug (https://bugs.webkit.org/show_bug.cgi?id=52341) has a small discussion about the limitations of platforms and a test for large sizes. Ideally, we'd impose the least amount of size restrictions that still keeps things safe.
See also: bug 41962.