Bug 54818

Summary: table-cell with position:relative doesn't become containing block for positioned descendants
Product: WebKit Reporter: Ian 'Hixie' Hickson <ian>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: jchaffraix
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
URL: http://junkyard.damowmow.com/453

Ian 'Hixie' Hickson
Reported 2011-02-19 22:16:54 PST
STEPS TO REPRODUCE: 1. Create a display:table-cell box. 2. Make it position:relative. 3. Make a child position:absolute and give it a position. EXPECTED RESULTS The positioned child should be positioned relative to its containing block as defined by per CSS2:10.1:4.2. ACTUAL RESULTS The table-cell box is ignored when determining the containing block. TESTCASE http://junkyard.damowmow.com/453
Attachments
Julien Chaffraix
Comment 1 2012-07-09 17:29:09 PDT
This now works as expected. Looking at the changes, bug 56246 seems to be the change that resolved this bug. fast/table/relative-position-containment.html covers the same case using HTML tables so no need to land the test.
Note You need to log in before you can comment on or make changes to this bug.