Skip to content

Commit

Permalink
Import css21/normal-flow W3C CSS Test Suite
Browse files Browse the repository at this point in the history
Import wpt@2ea12ebfd80b9802feb7f26938b90abda1a13de0

Using wpt-import in Chromium 7510498.

NOEXPORT=true

BUG=711807

Review-Url: https://codereview.chromium.org/2818243002
Cr-Commit-Position: refs/heads/master@{#465090}
  • Loading branch information
glebl authored and Commit bot committed Apr 18, 2017
1 parent 5010119 commit a2b6ae1
Show file tree
Hide file tree
Showing 1,016 changed files with 30,246 additions and 1 deletion.
45 changes: 45 additions & 0 deletions third_party/WebKit/LayoutTests/TestExpectations
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,51 @@ crbug.com/711805 external/wpt/css/CSS2/positioning/position-relative-035.xht [ S
crbug.com/711805 external/wpt/css/CSS2/positioning/position-relative-036.xht [ Skip ]
crbug.com/711805 external/wpt/css/CSS2/positioning/positioning-float-001.xht [ Skip ]

#### third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow
#### Passed: 667
#### Skipped: 41
crbug.com/711807 external/wpt/css/CSS2/normal-flow/block-in-inline-empty-001.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/block-in-inline-empty-004.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001e.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001f.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/block-in-inline-insert-001h.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002e.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/block-in-inline-insert-002f.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/block-in-inline-nested-002.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/block-in-inline-remove-006.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/blocks-017.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/inline-block-002.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/inline-block-003.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/inline-block-004.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/inline-block-005.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/inline-block-replaced-height-008.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/inline-replaced-height-008.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/inline-table-002a.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/inline-table-002b.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/inline-table-valign-001.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/inlines-003.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/inlines-004.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/inlines-005.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/inlines-006.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/inlines-016.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/inlines-017.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/max-height-applies-to-012.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/max-width-110.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/max-width-applies-to-005.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/max-width-applies-to-006.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/max-width-applies-to-012.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/max-width-applies-to-013.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/max-width-applies-to-014.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/min-height-applies-to-012.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/min-width-applies-to-005.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/min-width-applies-to-006.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/min-width-applies-to-012.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/min-width-applies-to-014.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/replaced-intrinsic-001.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/replaced-intrinsic-002.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/width-applies-to-012.xht [ Skip ]
crbug.com/711807 external/wpt/css/CSS2/normal-flow/width-inherit-001.xht [ Skip ]

# ====== Layout team owned tests to here ======

# ====== LayoutNG-only failures from here ======
Expand Down
3 changes: 2 additions & 1 deletion third_party/WebKit/LayoutTests/W3CImportExpectations
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ external/wpt/css/CSS2/inline-svg-margin-padding-border.html [ Skip ]
external/wpt/css/CSS2/lists [ Skip ]
external/wpt/css/CSS2/margin-padding-clear [ Skip ]
external/wpt/css/CSS2/media [ Skip ]
external/wpt/css/CSS2/normal-flow [ Skip ]
## Owners: glebl@chromium.org
# external/wpt/css/CSS2/normal-flow [ Pass ]
external/wpt/css/CSS2/other-formats [ Skip ]
external/wpt/css/CSS2/page-box [ Skip ]
external/wpt/css/CSS2/pagination [ Skip ]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CSS Test: Block formatting context auto height with floats and bottom margins</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-26 -->
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#root-height" />
<link rel="match" href="../reference/ref-filled-black-96px-square.xht" />

<meta name="flags" content="" />
<meta name="assert" content="The auto height of a block formatting context element is computed by accounting for bottom-margins of floated content which would otherwise be below the bottom edge of that element." />
<style type="text/css">
#container
{
width: 96px;
height: auto;
background: black;
position: absolute;
}
#float
{
float: left;
margin-bottom: 48px;
height: 48px;
width: 100%;
}
</style>
</head>
<body>
<p>Test passes if there is a filled black square.</p>
<div id="container">
<div id="float"></div>
</div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CSS Test: Block formatting context auto height with floated descendants of the normal flow and bottom margins</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-26 -->
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#root-height" />
<link rel="match" href="../reference/ref-filled-black-96px-square.xht" />

<meta name="flags" content="" />
<meta name="assert" content="The auto height of a block formatting context element is computed by accounting for bottom-margins of floated content descendents in the normal flow which would otherwise be below the bottom edge of that element." />
<style type="text/css">
#container
{
width: 96px;
height: auto;
background: black;
position: absolute;
}
#float
{
float: left;
margin-bottom: 48px;
height: 48px;
width: 100%;
}
</style>
</head>
<body>
<p>Test passes if there is a filled black square.</p>
<div id="container">
<div>
<div id="float"></div>
</div>
</div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>CSS Reftest Reference</title>

<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />

<style type="text/css"><![CDATA[
div
{
background-color: black;
height: 50px;
width: 100px;
}
]]></style>

</head>

<body>

<p>Test passes if there is a black rectangle which is wider than it is tall.</p>

<div></div>

</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CSS Test: Block formatting context auto height with floated descendants outside the normal flow and bottom margins</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-26 -->
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#root-height" />
<link rel="match" href="block-formatting-context-height-003-ref.xht" />

<meta name="flags" content="" />
<meta name="assert" content="The auto height of a block formatting context element does not account for bottom margins of floated content descendents of out of flow blocks." />
<style type="text/css">
#container
{
width: 100px;
height: auto;
background: black;
position: absolute;
}
#sibling
{
height: 50px;
width: 100px;
}
#absolute
{
position: absolute;
width: 100px;
height: 50px;
}
#float
{
margin-bottom: 50px;
height: 50px;
width: 100%;
}
</style>
</head>
<body>
<p>Test passes if there is a black rectangle which is wider than it is tall.</p>
<div id="container">
<div id="sibling"></div>
<div id="absolute">
<div id="float"></div>
</div>
</div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>CSS Reftest Reference</title>

<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />

<style type="text/css"><![CDATA[
table
{
border: black solid 1px;
border-spacing: 0px;
width: 100%;
}

td {padding: 0px;}
]]></style>

</head>

<body>

<p>Test passes if there are 3 lines of "Filler Text".</p>

<table>
<tr><td>Filler Text</td></tr>
<tr><td>Filler Text</td></tr>
<tr><td>Filler Text</td></tr>
</table>

</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CSS Test: Vertical layout of boxes</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-26 -->
<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#block-formatting" />
<link rel="match" href="block-formatting-contexts-001-ref.xht" />

<meta name="flags" content="" />
<meta name="assert" content="Boxes are vertically laid out one after the other beginning at the top of a containing block." />
<style type="text/css">
#div1
{
border: solid 1px black;
}
</style>
</head>
<body>
<p>Test passes if there are 3 lines of "Filler Text".</p>
<div id="div1">
<div>Filler Text</div>
<div>Filler Text</div>
<div>Filler Text</div>
</div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>CSS Reftest Reference</title>

<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />

<style type="text/css"><![CDATA[
table
{
border-collapse: collapse;
width: 100%;
}

tbody
{
border-bottom: black solid 1px;
border-top: black solid 1px;
}

thead {border-bottom: black solid 1px;}
/*
Necessary otherwise ( 0 + 1 ) divided by 2 may give unpredictable
measurements affecting vertical alignment
*/

tfoot {border-top: black solid 1px;}
/*
Necessary otherwise ( 0 + 1 ) divided by 2 may give unpredictable
measurements affecting vertical alignment
*/

/*
"
User agents must find a consistent rule for rounding off in the
case of an odd number of discrete units (screen pixels, printer dots).
"
http://www.w3.org/TR/CSS21/tables.html#collapsing-borders
*/

td {padding: 0px;}
]]></style>

</head>

<body>

<p>Test passes if there are 3 lines of "Filler Text" separated by 2 thin black lines.</p>

<table>
<thead> <tr><td>Filler Text</td></tr> </thead>
<tfoot> <tr><td>Filler Text</td></tr> </tfoot>
<tbody> <tr><td>Filler Text</td></tr> </tbody>
</table>

</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CSS Test: Vertical distance with margins</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-26 -->
<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#block-formatting" />
<link rel="match" href="block-formatting-contexts-003-ref.xht" />

<meta name="flags" content="" />
<meta name="assert" content="The vertical distance between two sibling boxes is determined by the margin property." />
<style type="text/css">
#div1
{
background: black;
}
div div
{
background: white;
margin-top: 1px;
}
</style>
</head>
<body>
<p>Test passes if there are 3 lines of "Filler Text" separated by 2 thin black lines.</p>
<div id="div1">
<div>Filler Text</div>
<div>Filler Text</div>
<div>Filler Text</div>
</div>
</body>
</html>
Loading

0 comments on commit a2b6ae1

Please sign in to comment.