When a DIV with height = 100% and padding/border is specified, it will render incorrect height. Current result: The DIV has a gaps in the bottom. Expected result: The DIV should fill the entire space because its height is 100%. Note: IE6+, FF, Opera are rendering correctly. See the attachment for sample.
Created attachment 17310 [details] Testcase Testcase
Confirmed rendering difference with Firefox 2.0.0.9, Opera 9.22 and Firefox 3.0b2 (14-Nov-2007). Tested with a local debug build of WebKit r27716 with Safari 3.0.4 (523.12) on Mac OS X 10.4.11 (8S165).
Hi While anaysing the root cause for this bug, came to know that the padding height was deducted from the original height of the block and was resulting in the gap which was filled with the background color. As a work around I made changes to recalculate the height in renderbox.cpp. With these changes the test case is behaving as it is behaving in IE. Let me know whether my anaysis is right or wrong. Thanks