Bug 19930

Summary: ignores top:<pct> with nested relative positioning
Product: WebKit Reporter: Mike Hommey <mh+webkit>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: mitz
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
testcase none

Description Mike Hommey 2008-07-07 11:09:48 PDT
This has been reported on Debian as bug #489767 ( http://bugs.debian.org/489767 ), against the Gtk+ port, version 1.0.1 (which is pretty much revision 34575). I haven't verified on trunk.

In nested <div>s with relative positioning, with height specified as
a percentage, an inmost top: <percentage> is ignored.

Reference:          Attached HTML file
Observed behavior:  The word "Caption" appears at the top.
Desired behavior:   It should appear near the bottom, just above the
                    dashed border.
CSS workaround:     It works if the units of "top" are changed to
                    pixels, or if the associated "position" is changed
                    to absolute, or if the parent's height is expressed
                    in pixels instead of a percentage.
Comment 1 Mike Hommey 2008-07-07 11:10:22 PDT
Created attachment 22138 [details]
testcase
Comment 2 mitz 2008-07-07 11:35:35 PDT
I think this is a duplicate of bug 14749. Mike, do you agree?
Comment 3 Mike Hommey 2008-07-07 11:38:38 PDT
It looks very similar.
Comment 4 Mike Hommey 2009-03-26 23:26:15 PDT
It is also fixed, so I guess this really was a duplicate.

*** This bug has been marked as a duplicate of 14749 ***