Browsers and % body height

November 17, 2005 Link to post  Permalink

If you set your page’s body height to 100% and your window is 900 pixels high, you would expect your body to be 900 pixels tall. This seems to be supported in both IE and Firefox 1.0.7.

What about 200%? IE gets this right, Firefox says 3600! WTF.

Here’s a set of readings of the body.offsetHeight property:

% Firefox IE
100% 900 900
110% 1089 990
150% 2025 1350
200% 3600 1800
300% 8100 2700

Not what I was expecting.