haikuwebkit/LayoutTests/fast/table/relative-position-containme...

10 lines
367 B
HTML
Raw Permalink Normal View History

https://bugs.webkit.org/show_bug.cgi?id=56246 Reviewed by Beth Dakin. Add support for relative positioning to table cells. Back out the code that hacked around the lack of support for offsetLeft, and add new tests to demonstrate that relative positioning works. Source/WebCore: * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::adjustRenderStyle): * rendering/RenderObject.cpp: (WebCore::RenderObject::offsetParent): * rendering/RenderObject.h: (WebCore::RenderObject::isRelPositioned): * rendering/RenderTableCell.h: * rendering/style/RenderStyle.h: * rendering/style/StyleRareNonInheritedData.cpp: (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData): (WebCore::StyleRareNonInheritedData::operator==): * rendering/style/StyleRareNonInheritedData.h: LayoutTests: * fast/table/relative-position-containment.html: Added. * fast/table/relative-position-offsets.html: Added. * fast/table/relative-position-stacking.html: Added. * platform/mac/fast/table/overflowHidden-expected.txt: * platform/mac/fast/table/relative-position-containment-expected.checksum: Added. * platform/mac/fast/table/relative-position-containment-expected.png: Added. * platform/mac/fast/table/relative-position-containment-expected.txt: Added. * platform/mac/fast/table/relative-position-offsets-expected.checksum: Added. * platform/mac/fast/table/relative-position-offsets-expected.png: Added. * platform/mac/fast/table/relative-position-offsets-expected.txt: Added. * platform/mac/fast/table/relative-position-stacking-expected.checksum: Added. * platform/mac/fast/table/relative-position-stacking-expected.png: Added. * platform/mac/fast/table/relative-position-stacking-expected.txt: Added. Canonical link: https://commits.webkit.org/70929@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@81049 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-03-14 20:30:06 +00:00
<!doctype html>
<html>
Will be green if the relative positioned table cell properly acts as a containing block.
<table style="border:1px solid black" cellspacing=100 cellpadding=0>
<tr><td style="position:relative;width:100px;height:100px;background-color:red">
<div style="position:absolute;left:0;top:0;width:100px;height:100px;background-color:green">