Bug 11677 - Display hidden row by script doesn't calculate heights correctly in specific case
Summary: Display hidden row by script doesn't calculate heights correctly in specific ...
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tables (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL: http://www.fredck.com/bugs/safari/row...
Keywords: HasReduction
Depends on:
Blocks:
 
Reported: 2006-11-22 06:50 PST by webkit
Modified: 2022-07-06 15:37 PDT (History)
3 users (show)

See Also:


Attachments
Test Case (1002 bytes, text/html)
2006-11-22 06:51 PST, webkit
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.