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/floats-clear W3C CSS Test Suite
NOEXPORT=true BUG=711709 Review-Url: https://codereview.chromium.org/2818213003 Cr-Commit-Position: refs/heads/master@{#465000}
- Loading branch information
glebl
authored and
Commit bot
committed
Apr 17, 2017
1 parent
7735ed2
commit 32b03d0
Showing
374 changed files
with
12,854 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
20 changes: 20 additions & 0 deletions
20
...d_party/WebKit/LayoutTests/external/wpt/css/CSS2/floats-clear/adjacent-floats-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,20 @@ | ||
<!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/" /> | ||
|
||
</head> | ||
|
||
<body> | ||
|
||
<p>Test passes if the orange square is to the left of the blue square and the squares top edges are aligned.</p> | ||
|
||
<div><img src="support/swatch-orange.png" width="96" height="96" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="96" height="96" alt="Image download support must be enabled" /></div> | ||
|
||
</body> | ||
</html> |
36 changes: 36 additions & 0 deletions
36
third_party/WebKit/LayoutTests/external/wpt/css/CSS2/floats-clear/adjacent-floats-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,36 @@ | ||
<!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: Multiple floated boxes adjacent to each other</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-07-02 --> | ||
<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" /> | ||
<link rel="match" href="adjacent-floats-001-ref.xht" /> | ||
|
||
<meta name="flags" content="" /> | ||
<meta name="assert" content="Floated boxes are allowed to be next to each other." /> | ||
<style type="text/css"> | ||
div div | ||
{ | ||
float: left; | ||
height: 1in; | ||
width: 1in; | ||
} | ||
#div1 | ||
{ | ||
background-color: orange; | ||
} | ||
#div2 | ||
{ | ||
background-color: blue; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<p>Test passes if the orange square is to the left of the blue square and the squares top edges are aligned.</p> | ||
<div> | ||
<div id="div1"></div> | ||
<div id="div2"></div> | ||
</div> | ||
</body> | ||
</html> |
26 changes: 26 additions & 0 deletions
26
third_party/WebKit/LayoutTests/external/wpt/css/CSS2/floats-clear/clear-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,26 @@ | ||
<!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[ | ||
img {vertical-align: bottom;} | ||
]]></style> | ||
|
||
</head> | ||
|
||
<body> | ||
|
||
<p>Test passes if there is an orange square below a blue square.</p> | ||
|
||
<div><img src="support/swatch-blue.png" width="96" height="96" alt="Image download support must be enabled" /></div> | ||
|
||
<div><img src="support/swatch-orange.png" width="96" height="96" alt="Image download support must be enabled" /></div> | ||
|
||
</body> | ||
</html> |
42 changes: 42 additions & 0 deletions
42
third_party/WebKit/LayoutTests/external/wpt/css/CSS2/floats-clear/clear-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,42 @@ | ||
<!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: Clear set to 'left'</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-07-02 --> | ||
<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#propdef-clear" /> | ||
<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#flow-control" /> | ||
<link rel="match" href="clear-001-ref.xht" /> | ||
|
||
<meta name="flags" content="" /> | ||
<meta name="assert" content="The 'clear' property set to a value of 'left' positions the current element to clear left-floated elements." /> | ||
<style type="text/css"> | ||
#div1 | ||
{ | ||
width: 500px; | ||
} | ||
div div | ||
{ | ||
height: 1in; | ||
width: 1in; | ||
} | ||
#div2 | ||
{ | ||
background: blue; | ||
float: left; | ||
} | ||
#div3 | ||
{ | ||
background: orange; | ||
clear: left; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<p>Test passes if there is an orange square below a blue square.</p> | ||
<div id="div1"> | ||
<div id="div2"></div> | ||
<div id="div3"></div> | ||
</div> | ||
</body> | ||
</html> |
33 changes: 33 additions & 0 deletions
33
third_party/WebKit/LayoutTests/external/wpt/css/CSS2/floats-clear/clear-002-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,33 @@ | ||
<!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[ | ||
body {margin-bottom: 0px;} | ||
|
||
img | ||
{ | ||
left: 404px; | ||
position: relative; | ||
vertical-align: bottom; | ||
} | ||
]]></style> | ||
|
||
</head> | ||
|
||
<body> | ||
|
||
<p>Test passes if there is an orange square below a blue square.</p> | ||
|
||
<div><img src="support/swatch-blue.png" width="96" height="96" alt="Image download support must be enabled" /></div> | ||
|
||
<div><img src="support/swatch-orange.png" width="96" height="96" alt="Image download support must be enabled" /></div> | ||
|
||
</body> | ||
</html> |
42 changes: 42 additions & 0 deletions
42
third_party/WebKit/LayoutTests/external/wpt/css/CSS2/floats-clear/clear-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,42 @@ | ||
<!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: Clear set to 'right'</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-07-02 --> | ||
<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#propdef-clear" /> | ||
<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#flow-control" /> | ||
<link rel="match" href="clear-002-ref.xht" /> | ||
|
||
<meta name="flags" content="" /> | ||
<meta name="assert" content="The 'clear' property set to a value of 'right' positions the current element to clear right-floated elements." /> | ||
<style type="text/css"> | ||
#div1 | ||
{ | ||
width: 500px; | ||
} | ||
div div | ||
{ | ||
float: right; | ||
height: 1in; | ||
width: 1in; | ||
} | ||
#div2 | ||
{ | ||
background: blue; | ||
} | ||
#div3 | ||
{ | ||
background: orange; | ||
clear: right; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<p>Test passes if there is an orange square below a blue square.</p> | ||
<div id="div1"> | ||
<div id="div2"></div> | ||
<div id="div3"></div> | ||
</div> | ||
</body> | ||
</html> |
26 changes: 26 additions & 0 deletions
26
third_party/WebKit/LayoutTests/external/wpt/css/CSS2/floats-clear/clear-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,26 @@ | ||
<!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[ | ||
img {vertical-align: top;} | ||
]]></style> | ||
|
||
</head> | ||
|
||
<body> | ||
|
||
<p>Test passes if there is a black box below the blue and orange boxes.</p> | ||
|
||
<div><img src="support/swatch-blue.png" width="96" height="96" alt="Image download support must be enabled" /><img src="support/swatch-orange.png" width="96" height="144" alt="Image download support must be enabled" /></div> | ||
|
||
<div><img src="support/black15x15.png" width="96" height="96" alt="Image download support must be enabled" /></div> | ||
|
||
</body> | ||
</html> |
49 changes: 49 additions & 0 deletions
49
third_party/WebKit/LayoutTests/external/wpt/css/CSS2/floats-clear/clear-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,49 @@ | ||
<!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: Clear set to 'both'</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-07-02 --> | ||
<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#propdef-clear" /> | ||
<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#flow-control" /> | ||
<link rel="match" href="clear-003-ref.xht" /> | ||
|
||
<meta content="" name="flags" /> | ||
<meta content="The 'clear' property set to a value of 'both' positions the current element to clear both left- and right-floated elements." name="assert" /> | ||
<style type="text/css"> | ||
#div1 | ||
{ | ||
width: 2in; | ||
} | ||
div div | ||
{ | ||
height: 1in; | ||
width: 1in; | ||
} | ||
#div2 | ||
{ | ||
background: blue; | ||
float: left; | ||
} | ||
#div3 | ||
{ | ||
float: right; | ||
background: orange; | ||
height: 1.5in; | ||
} | ||
#div4 | ||
{ | ||
background: black; | ||
clear: both; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<p>Test passes if there is a black box below the blue and orange boxes.</p> | ||
<div id="div1"> | ||
<div id="div2"></div> | ||
<div id="div3"></div> | ||
<div id="div4"></div> | ||
</div> | ||
</body> | ||
</html> |
38 changes: 38 additions & 0 deletions
38
third_party/WebKit/LayoutTests/external/wpt/css/CSS2/floats-clear/clear-004.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,38 @@ | ||
<!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: Clear set to 'none'</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-07-02 --> | ||
<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#propdef-clear" /> | ||
<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#flow-control" /> | ||
<link rel="match" href="../reference/ref-filled-green-100px-square.xht" /> | ||
|
||
<meta name="flags" content="" /> | ||
<meta name="assert" content="The 'clear' property set to a value of 'none' does not perform any clearing of floated elements." /> | ||
<style type="text/css"> | ||
div div | ||
{ | ||
height: 100px; | ||
width: 100px; | ||
} | ||
#div2 | ||
{ | ||
background: green; | ||
float: left; | ||
} | ||
#div3 | ||
{ | ||
background: red; | ||
clear: none; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> | ||
<div id="div1"> | ||
<div id="div2"></div> | ||
<div id="div3"></div> | ||
</div> | ||
</body> | ||
</html> |
Oops, something went wrong.