Bug 11677

Summary: Display hidden row by script doesn't calculate heights correctly in specific case
Product: WebKit Reporter: webkit
Component: TablesAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: bfulgham, mitz, pravind.2k4
Priority: P2 Keywords: HasReduction
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
URL: http://www.fredck.com/bugs/safari/row_display.html
Attachments:
Description Flags
Test Case none

Description webkit 2006-11-22 06:50:46 PST
It is quite difficult to explain the problem clearly in few words. A quite look at the provided test case code makes you understand the problem.

Anyway, I'll try to explain: if you have a two rows table with height set to 100%, and one of the rows (TR) height is set to 100%, that row is supposed to get as more space as available in the table height. It works well on a pure HTML case.

If instead the row without height style is not displayed (display:none) and, after page load, you display it, the rows heights are not correctly calculated.

The provided test case works well with IE 6, Opera 9 and Firefox 2. The code is quite simple and you will also find comments regarding a workaround for it.
Comment 1 webkit 2006-11-22 06:51:42 PST
Created attachment 11606 [details]
Test Case
Comment 2 Pravin D 2012-06-27 03:40:13 PDT
The issue seem to be fixed... Atleast the test case is working properly on r118649 onwards
Comment 3 Brent Fulgham 2022-07-06 15:37:35 PDT
Safari, Chrome, and Firefox produce the same layout for this test.