mirror of
https://github.com/servo/servo.git
synced 2025-08-09 23:45:35 +01:00
Update web-platform-tests to revision f7e2ea2c50c4d23549d07cd24c7a96fc3f203d96
This commit is contained in:
parent
4b1bb895a3
commit
33357a82e4
175 changed files with 1667 additions and 4935 deletions
|
@ -1,38 +0,0 @@
|
|||
<!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: A flex container with 'flex-flow' set to 'wrap'</title>
|
||||
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-wrap-property" />
|
||||
<meta name="flags" content="">
|
||||
<meta name="assert" content="This test checks that the flex container with 'flex-flow: wrap' is a multi-line flex container." />
|
||||
<style type="text/css">
|
||||
#flexbox
|
||||
{
|
||||
background-color: red;
|
||||
display: flex;
|
||||
flex-flow: wrap;
|
||||
height: 100px;
|
||||
width: 300px;
|
||||
}
|
||||
div div
|
||||
{
|
||||
background-color: orange;
|
||||
width: 150px;
|
||||
}
|
||||
.blue
|
||||
{
|
||||
background-color: blue;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test passes if there is a single blue rectangle on the left, a single orange rectangle directly to its right, and there is no red visible on the page.</p>
|
||||
<div id="flexbox">
|
||||
<div class="blue"></div>
|
||||
<div></div>
|
||||
<div class="blue"></div>
|
||||
<div></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,24 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Flexible Box Test: flex-wrap_nowrap</title>
|
||||
<link rel="author" title="Intel" href="http://www.intel.com" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-wrap-property" />
|
||||
<link rel="stylesheet" href="support/test-style.css">
|
||||
<meta name="flags" content="" />
|
||||
<meta name="assert" content="Check if the web engine can identify the flex-wrap value nowrap." />
|
||||
<style>
|
||||
#test{
|
||||
width: 120px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test passes if:<br>
|
||||
1. the rectangle 1, 2, 3 show up in a row and no gap between them.</p>
|
||||
<div id=test><div id=test01>1</div><div id=test02>2</div><div id=test03>3</div></div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,25 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Flexible Box Test: flex-wrap_wrap-reverse</title>
|
||||
<link rel="author" title="Intel" href="http://www.intel.com" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-wrap-property" />
|
||||
<link rel="stylesheet" href="support/test-style.css">
|
||||
<meta name="flags" content="" />
|
||||
<meta name="assert" content="Check if the web engine can identify the flex-wrap value wrap-reverse." />
|
||||
<style>
|
||||
#test{
|
||||
width: 120px;
|
||||
display: flex;
|
||||
flex-wrap: wrap-reverse;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test passes if:<br>
|
||||
1. the rectangle 1, 2, 3 show up in two rows in a red rectangle and no gap between them.<br>
|
||||
2. the rectangle 3 appear in the first line of rows.<br>
|
||||
3. the rectangles appear in upper left of the red rectangle.</p>
|
||||
<div id=test><div id=test01>1</div><div id=test02>2</div><div id=test03>3</div></div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,25 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Flexible Box Test: flex-wrap_wrap</title>
|
||||
<link rel="author" title="Intel" href="http://www.intel.com" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-wrap-property" />
|
||||
<link rel="stylesheet" href="support/test-style.css">
|
||||
<meta name="flags" content="" />
|
||||
<meta name="assert" content="Check if the display can recognize inline-flex value." />
|
||||
<style>
|
||||
div#test{
|
||||
width: 120px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test passes if:<br>
|
||||
1. the rectangle 1, 2, 3 show up in two rows in a red rectangle and no gap between them.<br>
|
||||
2. the rectangle 1 appear in the first line of rows.<br>
|
||||
3. the rectangles appear in upper left of the red rectangle.</p>
|
||||
<div id=test><div id=test01>1</div><div id=test02>2</div><div id=test03>3</div></div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,36 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Flexible Box Test: flex-wrap proprety - wrap</title>
|
||||
<link rel="author" title="haosdent" href="mailto:haosdent@gmail.com">
|
||||
<style type="text/css">
|
||||
/* Positioned container allows for the self-describing statement to still
|
||||
be visible in the case of failure */
|
||||
.container {
|
||||
position: relative;
|
||||
background: red;
|
||||
margin: 1em 0;
|
||||
border: 1px solid black;
|
||||
width: 20em;
|
||||
height: 6.5em;
|
||||
}
|
||||
span {
|
||||
display: inline-block;
|
||||
background: green;
|
||||
color: white;
|
||||
margin: 1em;
|
||||
width: 8em;
|
||||
float: left;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The test passed if you see a 2 * 2 table on the page.</p>
|
||||
<div class="container">
|
||||
<span>first</span>
|
||||
<span>second</span>
|
||||
<span>third</span>
|
||||
<span>forth</span>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,36 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Flexible Box Test: flex-wrap proprety - wrap-reverse</title>
|
||||
<link rel="author" title="haosdent" href="mailto:haosdent@gmail.com">
|
||||
<style type="text/css">
|
||||
/* Positioned container allows for the self-describing statement to still
|
||||
be visible in the case of failure */
|
||||
.container {
|
||||
position: relative;
|
||||
background: red;
|
||||
margin: 1em 0;
|
||||
border: 1px solid black;
|
||||
width: 20em;
|
||||
height: 6.5em;
|
||||
}
|
||||
span {
|
||||
display: inline-block;
|
||||
background: green;
|
||||
color: white;
|
||||
margin: 1em;
|
||||
width: 8em;
|
||||
float: left;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The test passed if you see a 2 * 2 table on the page and the order of them are reversed.</p>
|
||||
<div class="container">
|
||||
<span>third</span>
|
||||
<span>forth</span>
|
||||
<span>first</span>
|
||||
<span>second</span>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,40 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Flexible Box Test: flex-wrap proprety - wrap-reverse</title>
|
||||
<link rel="author" title="haosdent" href="mailto:haosdent@gmail.com">
|
||||
<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-wrap-property">
|
||||
<link rel="match" href="reference/ttwf-reftest-flex-wrap-reverse-ref.html">
|
||||
<meta name="assert" content="Statement describing what the test case is asserting">
|
||||
<style type="text/css">
|
||||
/* Positioned container allows for the self-describing statement to still
|
||||
be visible in the case of failure */
|
||||
.container {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-wrap: wrap-reverse;
|
||||
background: red;
|
||||
margin: 1em 0;
|
||||
border: 1px solid black;
|
||||
width: 20em;
|
||||
height: 6.5em;
|
||||
}
|
||||
span {
|
||||
display: inline-block;
|
||||
background: green;
|
||||
color: white;
|
||||
margin: 1em;
|
||||
width: 8em;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The test passed if you see a 2 * 2 table on the page and the order of them are reversed.</p>
|
||||
<div class="container">
|
||||
<span>first</span>
|
||||
<span>second</span>
|
||||
<span>third</span>
|
||||
<span>forth</span>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,40 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Flexible Box Test: flex-wrap proprety - wrap</title>
|
||||
<link rel="author" title="haosdent" href="mailto:haosdent@gmail.com">
|
||||
<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-wrap-property">
|
||||
<link rel="match" href="reference/ttwf-reftest-flex-wrap-ref.html">
|
||||
<meta name="assert" content="Statement describing what the test case is asserting">
|
||||
<style type="text/css">
|
||||
/* Positioned container allows for the self-describing statement to still
|
||||
be visible in the case of failure */
|
||||
.container {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
background: red;
|
||||
margin: 1em 0;
|
||||
border: 1px solid black;
|
||||
width: 20em;
|
||||
height: 6.5em;
|
||||
}
|
||||
span {
|
||||
display: inline-block;
|
||||
background: green;
|
||||
color: white;
|
||||
margin: 1em;
|
||||
width: 8em;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The test passed if you see a 2 * 2 table on the page.</p>
|
||||
<div class="container">
|
||||
<span>first</span>
|
||||
<span>second</span>
|
||||
<span>third</span>
|
||||
<span>forth</span>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue