Found this rather strange bug in IE8; element.style.top is limited to 1342177 pixels.
Even though an element will rarely grow this large, it is not impossible. And when it does things break. (I am an unfortunate victim)
Any possible work arounds you guys can think of?
Good catch! This seems to be a new limitation in IE8 that wasn’t present in previous versions. It occurs even in IE7-compatibility and Quirks modes.
It’s not just
top: it seems to affect all CSS lengths. Looks like a number-parsing problem, in that I can get a larger measurement by using another unit, but the number is still the maximum (eg.1342177emgives the same height as2000000em).You can also put a positioned element with
top: (more)px;inside another positioned element withtop: 1342177px;, of course.