In both Chrome and Firefox there appears to be a limit due to the way the browsers process width
and height
through css. I found this post about it, after using the inspect element in both Chrome and Firefox' debugging tools.
Contrary to the post, I found maximum values of 17895698
for Firefox, and 33554428
for Chrome.
Here are also a couple "bug" reports on Bugzilla about people running into the same issue:
Report 1 Report 2.
As they say in one (for Gecko/Firefox engines),
CSS lengths in Gecko are limited to at most (1<<30)-1 app units, with 1<<30 treated as an infinite value. App units are 1/60 of a CSS pixel. Lengths larger than that effectively overflow the integer datatype used to store lengths.
((1<<30)-1)/60 == 17895697
which is the maximum CSS length, in CSS px, that we support, effectively.