IE8 style.top limited to 1342177?

Found this rather strange bug in IE8; The .style.top element is capped at 1,342,177 pixels. While an element will rarely grow that large, this is not possible. And when it all breaks down. (I'm an unfortunate victim)

Any possible work around you that you guys can think of?

+2


a source to share


1 answer


Nice booty! This seems to be a new limitation in IE8 that was not present in previous versions. This happens even in IE7 and Quirks compatibility modes.

It's not easy top

: it affects all CSS lengths. Looks like a numerical parsing problem in that I can get a larger dimension with another device, but the number is still the maximum (for example, 1342177em

gives the same height as 2000000em

).



You can also place a positioned element c top: (more)px;

inside another positioned element c top: 1342177px;

.

0


a source







All Articles