Bug 20941

Summary: incorrect height calculation inside nested positioned elements
Product: WebKit Reporter: Max Barel <max>
Component: CSSAssignee: Dave Hyatt <hyatt>
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
Description Flags
test case html
Patch to fix bug sam: review+

Description Max Barel 2008-09-19 10:05:33 PDT
  - a div is absolute and its height is not specified but must be computed from top and bottom, 
  - a nested absolute div has its size computed from parent (correctly computed)
  - a nested image inside the previous, with relative height got an incorrect size

The image size is calculated relative to body rather than closest positioned parent.
Strange enough, calculation of the width is correct.

See test case in attachment.
Comment 1 Max Barel 2008-09-19 10:07:28 PDT
Created attachment 23571 [details]
test case html
Comment 2 Dave Hyatt 2008-09-19 13:12:47 PDT
I see the problem. Taking.

Comment 3 Dave Hyatt 2008-09-19 13:47:33 PDT
Created attachment 23581 [details]
Patch to fix bug
Comment 4 Dave Hyatt 2008-09-19 13:55:18 PDT
Fixed in r36672.