Bug 54818
Summary: | table-cell with position:relative doesn't become containing block for positioned descendants | ||
---|---|---|---|
Product: | WebKit | Reporter: | Ian 'Hixie' Hickson <ian> |
Component: | CSS | Assignee: | 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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Julien Chaffraix
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.