haikuwebkit/LayoutTests/fast/table/table-column-group-generate...

13 lines
578 B
HTML
Raw Permalink Normal View History

Standalone table-columns should be wrapped in anonymous tables https://bugs.webkit.org/show_bug.cgi?id=86671 Reviewed by Julien Chaffraix. Source/WebCore: The CSS2 spec specifies that table-columns misparented outside of a table or table-column-group should be wrapped in an anonymous table. Updating RenderObject::addChild to follow the spec. see http://www.w3.org/TR/CSS2/tables.html#anonymous-boxes for details. Tests: fast/table/table-column-generates-anonymous-table.html fast/table/table-column-group-generates-anonymous-table.html * rendering/RenderObject.cpp: (WebCore::RenderObject::addChild): LayoutTests: Adding 2 test cases and updating test results for two with changed expectations. * fast/table/table-column-generates-anonymous-table-expected.html: Added. * fast/table/table-column-generates-anonymous-table.html: Added. * fast/table/table-column-group-generates-anonymous-table-expected.html: Added. * fast/table/table-column-group-generates-anonymous-table.html: Added. * platform/chromium-linux/fast/forms/form-hides-table-expected.txt: Added. An anonymous table is now generated to enclose the misparented table column. * platform/chromium-linux/fast/table/form-with-table-style-expected.txt: Added. * platform/chromium-linux/fast/table/form-with-table-style-expected.png: Modified. The expectations previously were wrong in that the table column occupied height the equivalent of its line-height. This is correctly no longer the case. * platform/chromium/test_expectations.txt: Modified. Skipping modified tests on other platforms until I can rebaseline. Canonical link: https://commits.webkit.org/104539@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@117640 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-05-18 22:09:51 +00:00
<!DOCTYPE html>
<html>
<body>
This tests that a misparented table-column-group is properly wrapped in an anonymous table.
See <a href="http://bugs.webkit.org/show_bug.cgi?id=86671">bug 86671</a> for details.
<div style="display:table-column-group;">
<div style="display: table-column; background-color: green;"></div>
<div style="display: table-column; background-color: yellow;"></div>
</div>
<div style="display:table-row;"><div style="display:table-cell;">This box should be green</div><div style="display:table-cell;">This box should be yellow</div></div>
</body>
</html>