forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Import css21/normal-flow W3C CSS Test Suite
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
Showing
1,016 changed files
with
30,246 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...Kit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-context-height-001.xht
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
37 changes: 37 additions & 0 deletions
37
...Kit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-context-height-002.xht
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
29 changes: 29 additions & 0 deletions
29
...LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-context-height-003-ref.xht
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
48 changes: 48 additions & 0 deletions
48
...Kit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-context-height-003.xht
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
35 changes: 35 additions & 0 deletions
35
...ebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-001-ref.xht
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
27 changes: 27 additions & 0 deletions
27
...ty/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-001.xht
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
60 changes: 60 additions & 0 deletions
60
...ebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-003-ref.xht
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
32 changes: 32 additions & 0 deletions
32
...ty/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-formatting-contexts-003.xht
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.