haikuwebkit/LayoutTests/css2.1/tables/table-anonymous-objects-177...

28 lines
892 B
Plaintext
Raw Permalink Normal View History

Anonymous table objects: inline parent box requires inline-table child. https://bugs.webkit.org/show_bug.cgi?id=150090 Reviewed by David Hyatt. According to the CSS2.1 specification, if a child needs anonymous table wrapper and the child's parent is an inline box, the generated table needs to be inline-table. (inline-block and block parents generate non-inline table) Import W3C CSS2.1 anonymous table tests. Source/WebCore: * rendering/RenderElement.cpp: (WebCore::RenderElement::childRequiresTable): (WebCore::RenderElement::addChild): * rendering/RenderElement.h: * rendering/RenderInline.cpp: (WebCore::RenderInline::newChildIsInline): (WebCore::RenderInline::addChildIgnoringContinuation): (WebCore::RenderInline::addChildToContinuation): * rendering/RenderInline.h: * rendering/RenderTable.cpp: (WebCore::RenderTable::createAnonymousWithParentRenderer): LayoutTests: * css2.1/tables/table-anonymous-objects-177.xht: Added. * css2.1/tables/table-anonymous-objects-178.xht: Added. * css2.1/tables/table-anonymous-objects-179.xht: Added. * css2.1/tables/table-anonymous-objects-180.xht: Added. * css2.1/tables/table-anonymous-objects-181.xht: Added. * css2.1/tables/table-anonymous-objects-189.xht: Added. * css2.1/tables/table-anonymous-objects-190.xht: Added. * css2.1/tables/table-anonymous-objects-191.xht: Added. * css2.1/tables/table-anonymous-objects-192.xht: Added. * css2.1/tables/table-anonymous-objects-193.xht: Added. * css2.1/tables/table-anonymous-objects-194.xht: Added. * css2.1/tables/table-anonymous-objects-195.xht: Added. * css2.1/tables/table-anonymous-objects-196.xht: Added. * css2.1/tables/table-anonymous-objects-205.xht: Added. * css2.1/tables/table-anonymous-objects-206.xht: Added. * css2.1/tables/table-anonymous-objects-207.xht: Added. * css2.1/tables/table-anonymous-objects-208.xht: Added. * platform/mac/css2.1/tables/table-anonymous-objects-177-expected.txt: Added. * platform/mac/css2.1/tables/table-anonymous-objects-178-expected.txt: Added. * platform/mac/css2.1/tables/table-anonymous-objects-179-expected.txt: Added. * platform/mac/css2.1/tables/table-anonymous-objects-180-expected.txt: Added. * platform/mac/css2.1/tables/table-anonymous-objects-181-expected.txt: Added. * platform/mac/css2.1/tables/table-anonymous-objects-189-expected.txt: Added. * platform/mac/css2.1/tables/table-anonymous-objects-190-expected.txt: Added. * platform/mac/css2.1/tables/table-anonymous-objects-191-expected.txt: Added. * platform/mac/css2.1/tables/table-anonymous-objects-192-expected.txt: Added. * platform/mac/css2.1/tables/table-anonymous-objects-193-expected.txt: Added. * platform/mac/css2.1/tables/table-anonymous-objects-194-expected.txt: Added. * platform/mac/css2.1/tables/table-anonymous-objects-195-expected.txt: Added. * platform/mac/css2.1/tables/table-anonymous-objects-196-expected.txt: Added. * platform/mac/css2.1/tables/table-anonymous-objects-205-expected.txt: Added. * platform/mac/css2.1/tables/table-anonymous-objects-206-expected.txt: Added. * platform/mac/css2.1/tables/table-anonymous-objects-207-expected.txt: Added. * platform/mac/css2.1/tables/table-anonymous-objects-208-expected.txt: Added. Canonical link: https://commits.webkit.org/168239@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@191011 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-10-13 22:53:46 +00:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CSS Test: Auto-imported from Gecko test white-space-12.html</title>
<link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/>
<link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#anonymous-boxes"/>
<meta name="flags" content=''/>
</head>
<body>
<p>There should be no red below, except for antialiasing issues.</p>
<div style="position: relative; font-size: 2em;">
<div style="position: relative; z-index: 1; color: red; padding: 1px;">
<span>
a
<span style="display: table-cell">b</span><span style="display: table-cell">c</span>
d
</span>
</div>
<div style="position: absolute; z-index: 2; top: 0; color: green; padding: 1px;">
a bc d
</div>
</div>
</body>
</html>