mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update CSS tests to revision 31d63cc79bd4c929ed582229e936d7b389f3e6ab
This commit is contained in:
parent
1a81b18b9f
commit
2c9faf5363
91915 changed files with 5979820 additions and 0 deletions
|
@ -0,0 +1,65 @@
|
|||
<!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: Change the value of 'order' property</title>
|
||||
|
||||
<meta content="The order of three should be blue-red-black" name="assert" />
|
||||
|
||||
<link href="reference/Flexible-order-ref.xht" rel="match" />
|
||||
<link href="mailto:keynesqu@sohu.com" rel="author" title="KeynesQu" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-order" rel="help" />
|
||||
|
||||
<style>
|
||||
|
||||
.box {
|
||||
margin:0 auto;
|
||||
background:#CCC;
|
||||
border-radius:5px;
|
||||
width:600px;
|
||||
display:flex;
|
||||
flex-flow:row;
|
||||
}
|
||||
|
||||
.box div {
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.box .red {
|
||||
order:-2;
|
||||
flex:0 1 auto;
|
||||
width:200px;
|
||||
background:#F00;
|
||||
}
|
||||
.box .blue {
|
||||
order:-4;
|
||||
flex:0 1 auto;
|
||||
width:200px;
|
||||
background:#00F;
|
||||
}
|
||||
.box .black {
|
||||
order:-1;
|
||||
flex:0 1 auto;
|
||||
width:200px;
|
||||
background:#000;
|
||||
color:#FFF;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
|
||||
<!-- FLEX CONTAINER -->
|
||||
<div class="box">
|
||||
<div class="red">A</div>
|
||||
<div class="blue">B</div>
|
||||
<div class="black">C</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</body></html>
|
|
@ -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: A multi-line flex container with the 'align-content' property set to 'center'</title>
|
||||
<link href="http://www.microsoft.com/" rel="author" title="Microsoft" />
|
||||
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#align-content-property" rel="help" />
|
||||
<link href="reference/align-content-001-ref.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="This test checks that a multi-line flex container with 'align-content: center' centers lines in the flex container." name="assert" />
|
||||
<style type="text/css">
|
||||
#flexbox
|
||||
{
|
||||
background: linear-gradient(to bottom, green 0, green 25px, red 25px, red 75px, green 75px, green 100px);
|
||||
align-content: center;
|
||||
display: flex;
|
||||
flex-flow: wrap;
|
||||
height: 100px;
|
||||
width: 300px;
|
||||
}
|
||||
div div
|
||||
{
|
||||
background-color: green;
|
||||
height: 26px;
|
||||
width: 150px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test passes if there is no red visible on the page.</p>
|
||||
<div id="flexbox">
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -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: A multi-line flex container with the 'align-content' property set to 'flex-start'</title>
|
||||
<link href="http://www.microsoft.com/" rel="author" title="Microsoft" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#align-content-property" rel="help" />
|
||||
<link href="reference/align-content-001-ref.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="This test checks that a multi-line flex container with 'align-content: flex-start' packs lines toward the start of the flex container." name="assert" />
|
||||
<style type="text/css">
|
||||
#flexbox
|
||||
{
|
||||
background: linear-gradient(to bottom, red 0, red 50px, green 50px, green 100px);
|
||||
align-content: flex-start;
|
||||
display: flex;
|
||||
flex-flow: wrap;
|
||||
height: 100px;
|
||||
width: 300px;
|
||||
}
|
||||
div div
|
||||
{
|
||||
background-color: green;
|
||||
height: 26px;
|
||||
width: 150px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test passes if there is no red visible on the page.</p>
|
||||
<div id="flexbox">
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -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: A multi-line flex container with the 'align-content' property set to 'flex-end'</title>
|
||||
<link href="http://www.microsoft.com/" rel="author" title="Microsoft" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#align-content-property" rel="help" />
|
||||
<link href="reference/align-content-001-ref.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="This test checks that a multi-line flex container with 'align-content: flex-end' packs lines toward the end of the flex container." name="assert" />
|
||||
<style type="text/css">
|
||||
#flexbox
|
||||
{
|
||||
background: linear-gradient(to bottom, green 0, green 50px, red 50px, red 100px);
|
||||
align-content: flex-end;
|
||||
display: flex;
|
||||
flex-flow: wrap;
|
||||
height: 100px;
|
||||
width: 300px;
|
||||
}
|
||||
div div
|
||||
{
|
||||
background-color: green;
|
||||
height: 26px;
|
||||
width: 150px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test passes if there is no red visible on the page.</p>
|
||||
<div id="flexbox">
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,39 @@
|
|||
<!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 multi-line flex container with the 'align-content' property set to 'space-between'</title>
|
||||
<link href="http://www.microsoft.com/" rel="author" title="Microsoft" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#align-content-property" rel="help" />
|
||||
<link href="reference/align-content-001-ref.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="This test checks that a multi-line flex container with 'align-content: space-between' distributes lines evenly in the flex container." name="assert" />
|
||||
<style type="text/css">
|
||||
#flexbox
|
||||
{
|
||||
background: repeating-linear-gradient(to bottom, red 0, red 20px, green 20px, green 40px);
|
||||
align-content: space-between;
|
||||
display: flex;
|
||||
flex-flow: wrap;
|
||||
height: 100px;
|
||||
width: 300px;
|
||||
}
|
||||
div div
|
||||
{
|
||||
background-color: green;
|
||||
height: 21px;
|
||||
width: 150px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test passes if there is no red visible on the page.</p>
|
||||
<div id="flexbox">
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -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: A multi-line flex container with the 'align-content' property set to 'space-around'</title>
|
||||
<link href="http://www.microsoft.com/" rel="author" title="Microsoft" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#align-content-property" rel="help" />
|
||||
<link href="reference/align-content-001-ref.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="This test checks that a multi-line flex container with 'align-content: space-around' distributes lines evenly in the flex container, with half-size spaces on either end." name="assert" />
|
||||
<style type="text/css">
|
||||
#flexbox
|
||||
{
|
||||
background: linear-gradient(to bottom, green 0, green 15px, red 15px, red 35px, green 35px, green 65px, red 65px, red 85px, green 85px, green 100px);
|
||||
align-content: space-around;
|
||||
display: flex;
|
||||
flex-flow: wrap;
|
||||
height: 100px;
|
||||
width: 300px;
|
||||
}
|
||||
div div
|
||||
{
|
||||
background-color: green;
|
||||
height: 22px;
|
||||
width: 150px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test passes if there is no red visible on the page.</p>
|
||||
<div id="flexbox">
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -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: A multi-line flex container with the 'align-content' property set to 'stretch'</title>
|
||||
<link href="http://www.microsoft.com/" rel="author" title="Microsoft" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#align-content-property" rel="help" />
|
||||
<link href="reference/align-content-001-ref.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="This test checks that a multi-line flex container with 'align-content: stretch' stretches lines to take up the remaining space." name="assert" />
|
||||
<style type="text/css">
|
||||
#flexbox
|
||||
{
|
||||
background: red;
|
||||
align-content: center;
|
||||
align-content: stretch;
|
||||
display: flex;
|
||||
flex-flow: wrap;
|
||||
height: 100px;
|
||||
width: 300px;
|
||||
}
|
||||
div div
|
||||
{
|
||||
background-color: green;
|
||||
width: 150px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test passes if there is no red visible on the page.</p>
|
||||
<div id="flexbox">
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -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 Flexible Box Test: align-content_center</title>
|
||||
<link href="http://www.intel.com" rel="author" title="Intel" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#align-content-property" rel="help" />
|
||||
<link href="support/test-style.css" rel="stylesheet" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="Check if the web engine can identify the align-content value center." name="assert" />
|
||||
<style>
|
||||
#test{
|
||||
height: 200px;
|
||||
width: 80px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-content: center;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test passes if:<br />
|
||||
1. the rectangle 1, 2, 3 show up in a vertical column in a red rectangle and no gap between them.<br />
|
||||
2. the rectangle 1, 2, 3 appear in middle left of red rectangle.</p>
|
||||
<div id="test"><div id="test01">1</div><div id="test02">2</div><div id="test03">3</div></div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -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 Flexible Box Test: align-content_flex-end</title>
|
||||
<link href="http://www.intel.com" rel="author" title="Intel" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#align-content-property" rel="help" />
|
||||
<link href="support/test-style.css" rel="stylesheet" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="Check if the web engine can identify the align-content value flex-end." name="assert" />
|
||||
<style>
|
||||
#test{
|
||||
height: 200px;
|
||||
width: 80px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-content: flex-end;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test passes if:<br />
|
||||
1. the rectangle 1, 2, 3 show up in a vertical column in a red rectangle and no gap between them.<br />
|
||||
2. the rectangle 1, 2, 3 appear in bottom left of red rectangle.</p>
|
||||
<div id="test"><div id="test01">1</div><div id="test02">2</div><div id="test03">3</div></div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -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 Flexible Box Test: align-content_flex-start</title>
|
||||
<link href="http://www.intel.com" rel="author" title="Intel" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#align-content-property" rel="help" />
|
||||
<link href="support/test-style.css" rel="stylesheet" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="Check if the web engine can identify the align-content value flex-start." name="assert" />
|
||||
<style>
|
||||
#test{
|
||||
height: 200px;
|
||||
width: 80px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-content: flex-start;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test passes if:<br />
|
||||
1. the rectangle 1, 2, 3 show up in a vertical column in a red rectangle and no gap between them.<br />
|
||||
2. the rectangle 1, 2, 3 appear in upper left of red rectangle.</p>
|
||||
<div id="log"></div>
|
||||
<div id="test"><div id="test01">1</div><div id="test02">2</div><div id="test03">3</div></div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -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 Flexible Box Test: align-content_space-around</title>
|
||||
<link href="http://www.intel.com" rel="author" title="Intel" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#align-content-property" rel="help" />
|
||||
<link href="support/test-style.css" rel="stylesheet" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="Check if the web engine can identify align-content value space-around." name="assert" />
|
||||
<style>
|
||||
#test{
|
||||
height: 200px;
|
||||
width: 80px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-content: space-around;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test passes if:<br />
|
||||
1. the rectangle 1, 2, 3 show up in a vertical column in a red rectangle.<br />
|
||||
2. the rectangle 1, 2, 3 are distributed such that the empty space between any two adjacent rectangle is the same, and the empty space of the column before the first and after the last rectangle are half the size of the other empty spaces.</p>
|
||||
<div id="test"><div id="test01">1</div><div id="test02">2</div><div id="test03">3</div></div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -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 Flexible Box Test: align-content_space-between</title>
|
||||
<link href="http://www.intel.com" rel="author" title="Intel" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#align-content-property" rel="help" />
|
||||
<link href="support/test-style.css" rel="stylesheet" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="Check if the display can recognize inline-flex value." name="assert" />
|
||||
<style>
|
||||
#test{
|
||||
height: 200px;
|
||||
width: 80px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-content: space-between;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test passes if:<br />
|
||||
1. the rectangle 1, 2, 3 show up in a vertical column in a red rectangle.<br />
|
||||
2. No gap between the top of red rectangle and the top of rectangle 1, no gap between the bottom of red rectangle and the bottom of rectangle 3 too, and rectangle 2 is distributed so that the empty space between rectangle 1 and rectangle 3 is the same.</p>
|
||||
<div id="test"><div id="test01">1</div><div id="test02">2</div><div id="test03">3</div></div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -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 Flexible Box Test: align-content_stretch</title>
|
||||
<link href="http://www.intel.com" rel="author" title="Intel" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#align-content-property" rel="help" />
|
||||
<link href="support/test-style.css" rel="stylesheet" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="Check if the web engine can identify the align-content value stretch." name="assert" />
|
||||
<style>
|
||||
#test{
|
||||
height: 200px;
|
||||
width: 80px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-content: stretch;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test passes if:<br />
|
||||
1. the rectangle 1, 2, 3 show up in a vertical column in a red rectangle.<br />
|
||||
2. No gap between the top of red rectangle and the top of rectangle 1, and rectangle 1 , 2, 3 are distributed so that the empty space in the column between 1 , 2 , 3 is the same.
|
||||
</p><div id="test"><div id="test01">1</div><div id="test02">2</div><div id="test03">3</div></div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -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: A flex container with the 'align-items' property set to 'center'</title>
|
||||
<link href="http://www.microsoft.com/" rel="author" title="Microsoft" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#align-items-property" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-align-items" rel="help" />
|
||||
<link href="reference/align-content-001-ref.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="This test checks that the flex container with 'align-items: center' centers each flex item's margin box in the cross-axis of its line." name="assert" />
|
||||
<style type="text/css">
|
||||
#flexbox
|
||||
{
|
||||
background: linear-gradient(to bottom, green 0, green 25px, red 25px, red 75px, green 75px, green 100px);
|
||||
align-items: center;
|
||||
display: flex;
|
||||
height: 100px;
|
||||
width: 300px;
|
||||
}
|
||||
div div
|
||||
{
|
||||
background-color: green;
|
||||
height: 52px;
|
||||
width: 150px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test passes if there is no red visible on the page.</p>
|
||||
<div id="flexbox">
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -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: A flex container with the 'align-items' property set to 'flex-start'</title>
|
||||
<link href="http://www.microsoft.com/" rel="author" title="Microsoft" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#align-items-property" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-align-items" rel="help" />
|
||||
<link href="reference/align-content-001-ref.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="This test checks that the flex container with 'align-items: flex-start' places each flex item's margin box flush with the cross-start edge of line." name="assert" />
|
||||
<style type="text/css">
|
||||
#flexbox
|
||||
{
|
||||
background: linear-gradient(to bottom, red 0, red 50px, green 50px, green 100px);
|
||||
align-items: center;
|
||||
align-items: flex-start;
|
||||
display: flex;
|
||||
height: 100px;
|
||||
width: 300px;
|
||||
}
|
||||
div div
|
||||
{
|
||||
background-color: green;
|
||||
height: 51px;
|
||||
width: 150px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test passes if there is no red visible on the page.</p>
|
||||
<div id="flexbox">
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -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: A flex container with the 'align-items' property set to 'flex-end'</title>
|
||||
<link href="http://www.microsoft.com/" rel="author" title="Microsoft" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#align-items-property" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-align-items" rel="help" />
|
||||
<link href="reference/align-content-001-ref.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="This test checks that the flex container with 'align-items: flex-end' places each flex item's margin box flush with the cross-end edge of line." name="assert" />
|
||||
<style type="text/css">
|
||||
#flexbox
|
||||
{
|
||||
background: linear-gradient(to bottom, green 0, green 50px, red 50px, red 100px);
|
||||
align-items: center;
|
||||
align-items: flex-end;
|
||||
display: flex;
|
||||
height: 100px;
|
||||
width: 300px;
|
||||
}
|
||||
div div
|
||||
{
|
||||
background-color: green;
|
||||
height: 51px;
|
||||
width: 150px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test passes if there is no red visible on the page.</p>
|
||||
<div id="flexbox">
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -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: A flex container with the 'align-items' property set to 'baseline'</title>
|
||||
<link href="http://www.microsoft.com/" rel="author" title="Microsoft" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#align-items-property" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-align-items" rel="help" />
|
||||
<link href="reference/align-content-001-ref.xht" rel="match" />
|
||||
<meta content="ahem" name="flags" />
|
||||
<meta content="This test checks that the flex container with 'align-items: baseline' places each flex item's margin box so that their baselines align." name="assert" />
|
||||
<style type="text/css">
|
||||
#flexbox
|
||||
{
|
||||
background: linear-gradient(to bottom, green 0, green 16px, red 16px, red 35px, green 35px, green 66px, red 66px, red 85px, green 85px, green 100px);
|
||||
align-items: flex-start;
|
||||
align-items: baseline;
|
||||
display: flex;
|
||||
flex-flow: wrap;
|
||||
height: 100px;
|
||||
width: 300px;
|
||||
}
|
||||
div div
|
||||
{
|
||||
background-color: green;
|
||||
color: green;
|
||||
font: 20px/1em Ahem;
|
||||
width: 75px;
|
||||
}
|
||||
#div3, #div7
|
||||
{
|
||||
font-size: 40px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test passes if there is no red visible on the page.</p>
|
||||
<div id="flexbox">
|
||||
<div id="div1">d1</div>
|
||||
<div id="div2">d2</div>
|
||||
<div id="div3">d3</div>
|
||||
<div id="div4">d4</div>
|
||||
<div id="div5">d5</div>
|
||||
<div id="div6">d6</div>
|
||||
<div id="div7">d7</div>
|
||||
<div id="div8">d8</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -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: A flex container with the 'align-items' property set to 'stretch'</title>
|
||||
<link href="http://www.microsoft.com/" rel="author" title="Microsoft" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#align-items-property" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-align-items" rel="help" />
|
||||
<link href="reference/align-content-001-ref.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="This test checks that the flex container with 'align-items: stretch' places each flex item's margin box so that its cross size is the same as the cross size of the line." name="assert" />
|
||||
<style type="text/css">
|
||||
#flexbox
|
||||
{
|
||||
background: red;
|
||||
align-items: center;
|
||||
align-items: stretch;
|
||||
display: flex;
|
||||
height: 100px;
|
||||
width: 300px;
|
||||
}
|
||||
div div
|
||||
{
|
||||
background-color: green;
|
||||
width: 150px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test passes if there is no red visible on the page.</p>
|
||||
<div id="flexbox">
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,41 @@
|
|||
<!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><meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: align-self - flex-start</title>
|
||||
<link href="http://www.intel.com" rel="author" title="Intel" />
|
||||
<link href="mailto:shiyoux.tan@intel.com" rel="author" title="Shiyou Tan" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#align-items-property" rel="help" title="8.3. Cross-axis Alignment: the 'align-items' and 'align-self' properties" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-align-self" rel="help" />
|
||||
<link href="reference/ref-filled-green-100px-square.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="The 'align-self' property set 'flex-start' aligns the flex items to the start edge of cross axis" name="assert" />
|
||||
<style>
|
||||
#test {
|
||||
background-color: red;
|
||||
display: flex;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
#test div {
|
||||
align-self: flex-start;
|
||||
background-color: green;
|
||||
height: 50px;
|
||||
width: 25px;
|
||||
}
|
||||
#cover {
|
||||
background-color: green;
|
||||
height: 50px;
|
||||
margin-top: -50px;
|
||||
width: 100px;
|
||||
}
|
||||
</style>
|
||||
</head><body>
|
||||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
||||
<div id="test">
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
<div id="cover"></div>
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,41 @@
|
|||
<!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><meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: align-self - flex-end</title>
|
||||
<link href="http://www.intel.com" rel="author" title="Intel" />
|
||||
<link href="mailto:shiyoux.tan@intel.com" rel="author" title="Shiyou Tan" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#align-items-property" rel="help" title="8.3. Cross-axis Alignment: the 'align-items' and 'align-self' properties" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-align-self" rel="help" />
|
||||
<link href="reference/ref-filled-green-100px-square.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="The 'align-self' property set 'flex-end' aligns the flex items to the end edge of cross axis" name="assert" />
|
||||
<style>
|
||||
#test {
|
||||
background-color: red;
|
||||
display: flex;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
#test div {
|
||||
align-self: flex-end;
|
||||
background-color: green;
|
||||
height: 50px;
|
||||
width: 25px;
|
||||
}
|
||||
#cover {
|
||||
background-color: green;
|
||||
height: 50px;
|
||||
margin-top: -100px;
|
||||
width: 100px;
|
||||
}
|
||||
</style>
|
||||
</head><body>
|
||||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
||||
<div id="test">
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
<div id="cover"></div>
|
||||
|
||||
</body></html>
|
|
@ -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><meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: align-self - center</title>
|
||||
<link href="http://www.intel.com" rel="author" title="Intel" />
|
||||
<link href="mailto:shiyoux.tan@intel.com" rel="author" title="Shiyou Tan" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#align-items-property" rel="help" title="8.3. Cross-axis Alignment: the 'align-items' and 'align-self' properties" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-align-self" rel="help" />
|
||||
<link href="reference/ref-filled-green-100px-square.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="The 'align-self' property set 'center' centered the flex items in the cross axis within the line" name="assert" />
|
||||
<style>
|
||||
#test {
|
||||
background-color: red;
|
||||
display: flex;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
#test div {
|
||||
align-self: center;
|
||||
background-color: green;
|
||||
height: 50px;
|
||||
width: 25px;
|
||||
}
|
||||
#top {
|
||||
background-color: green;
|
||||
margin-top: -100px;
|
||||
height: 25px;
|
||||
width: 100px;
|
||||
}
|
||||
#bottom {
|
||||
background-color: green;
|
||||
height: 25px;
|
||||
margin-top: 50px;
|
||||
width: 100px;
|
||||
}
|
||||
</style>
|
||||
</head><body>
|
||||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
||||
<div id="test">
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
<div id="top"></div>
|
||||
<div id="bottom"></div>
|
||||
|
||||
</body></html>
|
|
@ -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><meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: align-self - stretch</title>
|
||||
<link href="http://www.intel.com" rel="author" title="Intel" />
|
||||
<link href="mailto:shiyoux.tan@intel.com" rel="author" title="Shiyou Tan" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#align-items-property" rel="help" title="8.3. Cross-axis Alignment: the 'align-items' and 'align-self' properties" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-align-self" rel="help" />
|
||||
<link href="reference/ref-filled-green-100px-square.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="The 'align-self' property set 'stretch' makes the cross size of the item's margin box
|
||||
as close to the same size as the line as possible" name="assert" />
|
||||
<style>
|
||||
#test {
|
||||
align-items: center;
|
||||
background-color: red;
|
||||
display: flex;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
#test div {
|
||||
align-self: stretch;
|
||||
background-color: green;
|
||||
width: 25px;
|
||||
}
|
||||
</style>
|
||||
</head><body>
|
||||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
||||
<div id="test">
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
|
||||
</body></html>
|
|
@ -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><meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: align-self - stretch (height: number)</title>
|
||||
<link href="http://www.intel.com" rel="author" title="Intel" />
|
||||
<link href="mailto:shiyoux.tan@intel.com" rel="author" title="Shiyou Tan" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#align-items-property" rel="help" title="8.3. Cross-axis Alignment: the 'align-items' and 'align-self' properties" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-align-self" rel="help" />
|
||||
<link href="reference/ref-filled-green-100px-square.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="The 'align-self' property set 'stretch' will be invalid while cross size of the flex item set exact number" name="assert" />
|
||||
<style>
|
||||
#test {
|
||||
background-color: green;
|
||||
display: flex;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
#test div {
|
||||
align-self: stretch;
|
||||
background-color: red;
|
||||
height: 50px;
|
||||
width: 25px;
|
||||
}
|
||||
#cover {
|
||||
background-color: green;
|
||||
height: 50px;
|
||||
position: relative;
|
||||
top: -100px;
|
||||
width: 100px;
|
||||
}
|
||||
</style>
|
||||
</head><body>
|
||||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
||||
<div id="test">
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
<div id="cover"></div>
|
||||
|
||||
</body></html>
|
|
@ -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><meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: align-self - baseline</title>
|
||||
<link href="http://www.intel.com" rel="author" title="Intel" />
|
||||
<link href="mailto:shiyoux.tan@intel.com" rel="author" title="Shiyou Tan" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#align-items-property" rel="help" title="8.3. Cross-axis Alignment: the 'align-items' and 'align-self' properties" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-align-self" rel="help" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="The 'align-self' property set 'baseline' aligns the flex items to the baseline of content" name="assert" />
|
||||
<style>
|
||||
#test {
|
||||
border: 1px solid black;
|
||||
display: flex;
|
||||
}
|
||||
#test div {
|
||||
align-self: baseline;
|
||||
}
|
||||
#div1 {
|
||||
height: 90px;
|
||||
font-size: 20px;
|
||||
width: 30px;
|
||||
}
|
||||
#div2 {
|
||||
height: 50px;
|
||||
font-size: 10px;
|
||||
width: 30px;
|
||||
}
|
||||
#div3 {
|
||||
height: 100px;
|
||||
font-size: 30px;
|
||||
width: 30px;
|
||||
}
|
||||
#div4 {
|
||||
height: 80px;
|
||||
font-size: 15px;
|
||||
width: 30px;
|
||||
}
|
||||
</style>
|
||||
</head><body>
|
||||
<p>Test passes if the underline of all 'a' characters within black border box is horizontal and no breaking.</p>
|
||||
<div id="test">
|
||||
<div id="div1"><a href="#">aaa</a></div>
|
||||
<div id="div2"><a href="#">aaaaa</a></div>
|
||||
<div id="div3"><a href="#">aa</a></div>
|
||||
<div id="div4"><a href="#">aaa</a></div>
|
||||
</div>
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,43 @@
|
|||
<!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><meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: align-self - auto and align-items - flex-start</title>
|
||||
<link href="http://www.intel.com" rel="author" title="Intel" />
|
||||
<link href="mailto:shiyoux.tan@intel.com" rel="author" title="Shiyou Tan" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#align-items-property" rel="help" title="8.3. Cross-axis Alignment: the 'align-items' and 'align-self' properties" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-align-self" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-align-items" rel="help" />
|
||||
<link href="reference/ref-filled-green-100px-square.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="The 'align-self' property set 'auto' aligns flex items to start edge of cross-axis when 'align-items' set 'flex-start'" name="assert" />
|
||||
<style>
|
||||
#test {
|
||||
align-items: flex-start;
|
||||
background-color: red;
|
||||
display: flex;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
#test div {
|
||||
align-self: auto;
|
||||
background-color: green;
|
||||
height: 50px;
|
||||
width: 25px;
|
||||
}
|
||||
#cover {
|
||||
background-color: green;
|
||||
height: 50px;
|
||||
margin-top: -50px;
|
||||
width: 100px;
|
||||
}
|
||||
</style>
|
||||
</head><body>
|
||||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
||||
<div id="test">
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
<div id="cover"></div>
|
||||
|
||||
</body></html>
|
|
@ -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><meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: align-self - auto and align-items - flex-end</title>
|
||||
<link href="http://www.intel.com" rel="author" title="Intel" />
|
||||
<link href="mailto:shiyoux.tan@intel.com" rel="author" title="Shiyou Tan" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#align-items-property" rel="help" title="8.3. Cross-axis Alignment: the 'align-items' and 'align-self' properties" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-align-self" rel="help" />
|
||||
<link href="reference/ref-filled-green-100px-square.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="The 'align-self' property set 'auto' aligns flex items to end edge of cross-axis when 'align-items' set 'flex-end'" name="assert" />
|
||||
<style>
|
||||
#test {
|
||||
align-items: flex-end;
|
||||
background-color: red;
|
||||
display: flex;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
#test div {
|
||||
align-self: auto;
|
||||
background-color: green;
|
||||
height: 50px;
|
||||
width: 25px;
|
||||
}
|
||||
#cover {
|
||||
background-color: green;
|
||||
height: 50px;
|
||||
margin-top: -100px;
|
||||
width: 100px;
|
||||
}
|
||||
</style>
|
||||
</head><body>
|
||||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
||||
<div id="test">
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
<div id="cover"></div>
|
||||
|
||||
</body></html>
|
|
@ -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><meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: align-self - auto and align-items - center</title>
|
||||
<link href="http://www.intel.com" rel="author" title="Intel" />
|
||||
<link href="mailto:shiyoux.tan@intel.com" rel="author" title="Shiyou Tan" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#align-items-property" rel="help" title="8.3. Cross-axis Alignment: the 'align-items' and 'align-self' properties" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-align-self" rel="help" />
|
||||
<link href="reference/ref-filled-green-100px-square.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="The 'align-self' property set 'auto' will center flex items the flex items in the cross axis when 'align-items' set 'center'" name="assert" />
|
||||
<style>
|
||||
#test {
|
||||
align-items: center;
|
||||
background-color: red;
|
||||
display: flex;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
#test div {
|
||||
align-self: auto;
|
||||
background-color: green;
|
||||
height: 50px;
|
||||
width: 25px;
|
||||
}
|
||||
#top {
|
||||
background-color: green;
|
||||
margin-top: -100px;
|
||||
height: 25px;
|
||||
width: 100px;
|
||||
}
|
||||
#bottom {
|
||||
background-color: green;
|
||||
height: 25px;
|
||||
margin-top: 50px;
|
||||
width: 100px;
|
||||
}
|
||||
</style>
|
||||
</head><body>
|
||||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
||||
<div id="test">
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
<div id="top"></div>
|
||||
<div id="bottom"></div>
|
||||
|
||||
</body></html>
|
|
@ -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><meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: align-self - auto and align-items - baseline</title>
|
||||
<link href="http://www.intel.com" rel="author" title="Intel" />
|
||||
<link href="mailto:shiyoux.tan@intel.com" rel="author" title="Shiyou Tan" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#align-items-property" rel="help" title="8.3. Cross-axis Alignment: the 'align-items' and 'align-self' properties" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-align-self" rel="help" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="The 'align-self' property set 'auto' aligns the flex items to the baseline of content when 'align-items' set 'baseline'" name="assert" />
|
||||
<style>
|
||||
#test {
|
||||
align-items: baseline;
|
||||
border: 1px solid black;
|
||||
display: flex;
|
||||
}
|
||||
#test div {
|
||||
align-self: auto;
|
||||
}
|
||||
#div1 {
|
||||
height: 90px;
|
||||
font-size: 20px;
|
||||
width: 30px;
|
||||
}
|
||||
#div2 {
|
||||
height: 50px;
|
||||
font-size: 10px;
|
||||
width: 30px;
|
||||
}
|
||||
#div3 {
|
||||
height: 100px;
|
||||
font-size: 30px;
|
||||
width: 30px;
|
||||
}
|
||||
#div4 {
|
||||
height: 80px;
|
||||
font-size: 15px;
|
||||
width: 30px;
|
||||
}
|
||||
</style>
|
||||
</head><body>
|
||||
<p>Test passes if the underline of all 'a' characters within black border box is horizontal and no breaking.</p>
|
||||
<div id="test">
|
||||
<div id="div1"><a href="#">aaa</a></div>
|
||||
<div id="div2"><a href="#">aaaaa</a></div>
|
||||
<div id="div3"><a href="#">aa</a></div>
|
||||
<div id="div4"><a href="#">aaa</a></div>
|
||||
</div>
|
||||
|
||||
</body></html>
|
|
@ -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><meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: align-self - auto and align-items - stretch</title>
|
||||
<link href="http://www.intel.com" rel="author" title="Intel" />
|
||||
<link href="mailto:shiyoux.tan@intel.com" rel="author" title="Shiyou Tan" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#align-items-property" rel="help" title="8.3. Cross-axis Alignment: the 'align-items' and 'align-self' properties" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-align-self" rel="help" />
|
||||
<link href="reference/ref-filled-green-100px-square.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="The 'align-self' property set 'auto' makes the cross size of the item's margin box
|
||||
as close to the same size as the line as possible when 'align-items' set 'stretch'" name="assert" />
|
||||
<style>
|
||||
#test {
|
||||
align-items: stretch;
|
||||
background-color: red;
|
||||
display: flex;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
#test div {
|
||||
align-self: auto;
|
||||
background-color: green;
|
||||
width: 25px;
|
||||
}
|
||||
</style>
|
||||
</head><body>
|
||||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
||||
<div id="test">
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
|
||||
</body></html>
|
|
@ -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><meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: align-self - auto (initial value)</title>
|
||||
<link href="http://www.intel.com" rel="author" title="Intel" />
|
||||
<link href="mailto:shiyoux.tan@intel.com" rel="author" title="Shiyou Tan" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#align-items-property" rel="help" title="8.3. Cross-axis Alignment: the 'align-items' and 'align-self' properties" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-align-self" rel="help" />
|
||||
<link href="reference/ref-filled-green-100px-square.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="The initial value of 'align-self' property is 'auto'" name="assert" />
|
||||
<style>
|
||||
#test {
|
||||
align-items: stretch;
|
||||
background-color: red;
|
||||
display: flex;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
#test div {
|
||||
background-color: green;
|
||||
width: 25px;
|
||||
}
|
||||
.auto {
|
||||
align-self: auto;
|
||||
}
|
||||
</style>
|
||||
</head><body>
|
||||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
||||
<div id="test">
|
||||
<div class="auto"></div>
|
||||
<div class="auto"></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
|
||||
</body></html>
|
|
@ -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><meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: align-self - invalid if applied to flex container</title>
|
||||
<link href="http://www.intel.com" rel="author" title="Intel" />
|
||||
<link href="mailto:shiyoux.tan@intel.com" rel="author" title="Shiyou Tan" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#align-items-property" rel="help" title="8.3. Cross-axis Alignment: the 'align-items' and 'align-self' properties" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-align-self" rel="help" />
|
||||
<link href="reference/ref-filled-green-100px-square.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="The 'align-self' property is invalid if applied to flex container" name="assert" />
|
||||
<style>
|
||||
#test {
|
||||
align-items: flex-start;
|
||||
align-self: flex-end;
|
||||
background-color: red;
|
||||
display: flex;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
#test div {
|
||||
background-color: green;
|
||||
height: 50px;
|
||||
width: 25px;
|
||||
}
|
||||
#cover {
|
||||
background-color: green;
|
||||
height: 50px;
|
||||
margin-top: -50px;
|
||||
width: 100px;
|
||||
}
|
||||
</style>
|
||||
</head><body>
|
||||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
||||
<div id="test">
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
<div id="cover"></div>
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,45 @@
|
|||
<!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 Regions: fixed height flexbox inside auto height region</title>
|
||||
<link href="mailto:badea@adobe.com" rel="author" title="Catalin Badea" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#the-flow-into-property" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#the-flow-from-property" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#rfcb-flow-fragment-height-resolution" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#layout-algorithm" rel="help" />
|
||||
<meta content="Test that flowing a flex container inside a region with auto-height will enlarge
|
||||
the region to fit the content." name="assert" />
|
||||
<link href="reference/autoheight-flexbox-001-ref.xht" rel="match" />
|
||||
<style>
|
||||
.flex {
|
||||
display: flex;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
background-color: green;
|
||||
flow-into: flow;
|
||||
}
|
||||
|
||||
.region {
|
||||
width: 100px;
|
||||
background-color: gray;
|
||||
padding: 10px;
|
||||
flow-from: flow;
|
||||
}
|
||||
|
||||
.red {
|
||||
background-color: red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<ul>
|
||||
<li>Test passes if you see a green square inside a gray square.</li>
|
||||
<li>You shouldn't see any red.</li>
|
||||
</ul>
|
||||
<div class="flex">
|
||||
</div>
|
||||
<div class="region">
|
||||
<p class="red"> </p>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,50 @@
|
|||
<!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 Regions: flowing auto-height flexbox elements in region</title>
|
||||
<link href="mailto:badea@adobe.com" rel="author" title="Catalin Badea" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#rfcb-flow-fragment-height-resolution" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#layout-algorithm" rel="help" />
|
||||
<meta content="ahem" name="flags" />
|
||||
<meta content="Test that a flex container with auto height is flowed correctly inside a region
|
||||
with auto height. The region should fit the flexbox." name="assert" />
|
||||
<link href="reference/regions-flexbox-002-ref.xht" rel="match" />
|
||||
<style>
|
||||
.flex {
|
||||
display: flex;
|
||||
flow-into: flow;
|
||||
font-family: Ahem;
|
||||
font-size: 20px;
|
||||
line-height: 1em;
|
||||
color: green;
|
||||
}
|
||||
|
||||
.region {
|
||||
width: 100px;
|
||||
padding: 10px;
|
||||
background-color: gray;
|
||||
flow-from: flow;
|
||||
}
|
||||
|
||||
.red {
|
||||
background-color: red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<ul>
|
||||
<li>Test passes if you see a green square inside a gray rectangle.</li>
|
||||
<li>You shouldn't see any red.</li>
|
||||
</ul>
|
||||
<div class="flex">
|
||||
XXXXX<br />
|
||||
XXXXX<br />
|
||||
XXXXX<br />
|
||||
XXXXX<br />
|
||||
XXXXX
|
||||
</div>
|
||||
<div class="region">
|
||||
<p class="red"> </p>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,54 @@
|
|||
<!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 Regions: auto height region inside a fixed sized flexbox</title>
|
||||
<link href="mailto:badea@adobe.com" rel="author" title="Catalin Badea" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#the-flow-into-property" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#the-flow-from-property" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#rfcb-flow-fragment-height-resolution" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#layout-algorithm" rel="help" />
|
||||
<meta content="ahem" name="flags" />
|
||||
<meta content="Test that an auto-height region inside a flexbox is stretched to match the flexbox
|
||||
container's cross size." name="assert" />
|
||||
<link href="reference/autoheight-flexbox-003-ref.xht" rel="match" />
|
||||
<style>
|
||||
.content {
|
||||
font-family: Ahem;
|
||||
font-size: 20px;
|
||||
line-height: 1em;
|
||||
color: green;
|
||||
flow-into: flow;
|
||||
}
|
||||
.region {
|
||||
flow-from: flow;
|
||||
}
|
||||
.flex {
|
||||
display: flex;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
.red {
|
||||
background-color: red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<ul>
|
||||
<li>Test passes if you see a green square.</li>
|
||||
<li>You shouldn't see any red.</li>
|
||||
</ul>
|
||||
<div class="content">
|
||||
XXXXX<br />
|
||||
XXXXX<br />
|
||||
XXXXX<br />
|
||||
XXXXX<br />
|
||||
XXXXX
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="region">
|
||||
<p class="red"> </p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,53 @@
|
|||
<!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 Regions: auto height region inside an auto height flexbox</title>
|
||||
<link href="mailto:badea@adobe.com" rel="author" title="Catalin Badea" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#the-flow-into-property" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#the-flow-from-property" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#rfcb-flow-fragment-height-resolution" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#layout-algorithm" rel="help" />
|
||||
<meta content="ahem" name="flags" />
|
||||
<meta content="Test that an auto height region inside a flex container with auto height is
|
||||
displayed properly. The flexbox should have the same height as the region." name="assert" />
|
||||
<link href="reference/autoheight-flexbox-003-ref.xht" rel="match" />
|
||||
<style>
|
||||
.content {
|
||||
font-family: Ahem;
|
||||
font-size: 20px;
|
||||
line-height: 1em;
|
||||
color: green;
|
||||
flow-into: flow;
|
||||
}
|
||||
.region {
|
||||
flow-from: flow;
|
||||
}
|
||||
.flex {
|
||||
display: flex;
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
.red {
|
||||
background-color: red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<ul>
|
||||
<li>Test passes if you see a green square.</li>
|
||||
<li>You shouldn't see any red.</li>
|
||||
</ul>
|
||||
<div class="content">
|
||||
XXXXX<br />
|
||||
XXXXX<br />
|
||||
XXXXX<br />
|
||||
XXXXX<br />
|
||||
XXXXX
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="region">
|
||||
<p class="red"> </p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,93 @@
|
|||
<!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 Regions: Auto-height regions in auto-height flex container</title>
|
||||
<link href="mailto:badea@adobe.com" rel="author" title="Catalin Badea" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#rfcb-flow-fragment-height-resolution" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#layout-algorithm" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-wrap" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-direction-property" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-flow-property" rel="help" />
|
||||
<meta content="ahem" name="flags" />
|
||||
<meta content="Test that auto-height regions placed in a flex container with auto-height and
|
||||
row wrap reverse flow are sized correctly. The content from the second flow should flow through the region on
|
||||
the second row and into the region from the first row, making the left blue rectangle taller than the green
|
||||
rectangle on the right." name="assert" />
|
||||
<link href="reference/autoheight-regions-in-autoheight-flexbox-001-ref.xht" rel="match" />
|
||||
<style>
|
||||
.content {
|
||||
font-family: Ahem;
|
||||
font-size: 20px;
|
||||
line-height: 1em;
|
||||
}
|
||||
|
||||
#c1 {
|
||||
color: green;
|
||||
flow-into: flow1;
|
||||
}
|
||||
|
||||
#c2 {
|
||||
color: blue;
|
||||
flow-into: flow2;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: flex;
|
||||
max-width: 300px;
|
||||
flex-flow: row-reverse wrap-reverse;
|
||||
}
|
||||
|
||||
.fromFlow1 {
|
||||
flow-from: flow1;
|
||||
}
|
||||
|
||||
.fromFlow2 {
|
||||
flow-from: flow2;
|
||||
}
|
||||
|
||||
#r1 {
|
||||
max-width: 100px;
|
||||
max-height: 40px;
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
|
||||
#r2 {
|
||||
width: 200px;
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
|
||||
#r3 {
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
|
||||
.blue {
|
||||
color: blue;
|
||||
}
|
||||
|
||||
.red {
|
||||
background-color: red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<ul>
|
||||
<li>Test passes if you see a blue rectangle and a green rectangle, from left to right in this order.</li>
|
||||
<li>The blue rectangle one the left should be taller than the green rectangle on the right.</li>
|
||||
<li>You shouldn't see any red.</li>
|
||||
</ul>
|
||||
<div class="content" id="c1">
|
||||
XXXXX<br />
|
||||
XXXXX<br />
|
||||
<span class="blue">XXXXX</span>
|
||||
</div>
|
||||
<div class="content" id="c2">
|
||||
XXXXX<br />
|
||||
XXXXX
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="fromFlow1" id="r1"><p class="red"> </p></div>
|
||||
<div class="fromFlow2" id="r2"><p class="red"> </p></div>
|
||||
<div class="fromFlow1" id="r3"><p class="red"> </p></div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,58 @@
|
|||
<!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 Regions: Auto-height regions with vertical writing mode in auto-height flexbox</title>
|
||||
<link href="mailto:badea@adobe.com" rel="author" title="Catalin Badea" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#rfcb-flow-fragment-height-resolution" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#layout-algorithm" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-direction-property" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-writing-modes-3/#propdef-writing-mode" rel="help" />
|
||||
<meta content="ahem" name="flags" />
|
||||
<meta content="Test checks that auto-height regions having content with vertical writing mode are
|
||||
sized correctly when placed inside a flex container. The flowed content should be displayed as a horizontal
|
||||
green stripe." name="assert" />
|
||||
<link href="reference/autoheight-regions-in-autoheight-flexbox-002-ref.xht" rel="match" />
|
||||
<style>
|
||||
.content {
|
||||
font-size: 20px;
|
||||
line-height: 1em;
|
||||
color: green;
|
||||
font-family: Ahem;
|
||||
flow-into: flow;
|
||||
writing-mode: vertical-rl;
|
||||
}
|
||||
|
||||
.flexbox {
|
||||
display: flex;
|
||||
flex-flow: row;
|
||||
}
|
||||
|
||||
.region {
|
||||
background-color: green;
|
||||
flow-from: flow;
|
||||
}
|
||||
|
||||
.region > p {
|
||||
background-color: red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<ul>
|
||||
<li>Test passes if you see a horizontal green stripe.</li>
|
||||
<li>You shouldn't see any red.</li>
|
||||
</ul>
|
||||
<div class="content">
|
||||
XX<br />
|
||||
XX<br />
|
||||
XX<br />
|
||||
XX<br />
|
||||
XX
|
||||
</div>
|
||||
<div class="flexbox">
|
||||
<div class="region">
|
||||
<p> </p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,64 @@
|
|||
<!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 Regions: auto-height regions in auto-height flexbox with flex basis</title>
|
||||
<link href="mailto:badea@adobe.com" rel="author" title="Catalin Badea" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#rfcb-flow-fragment-height-resolution" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#break-after" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#layout-algorithm" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-basis" rel="help" />
|
||||
<meta content="ahem" name="flags" />
|
||||
<meta content="Test checks that the computed height of auto-height regions placed in a flex
|
||||
container takes into the account the flex basis property. The space available inside the flex container should
|
||||
be distributed according to the flex basis property. In this particular case, each of the three regions must
|
||||
have a height equal to one third of the flex container's height." name="assert" />
|
||||
<link href="reference/autoheight-regions-in-autoheight-flexbox-003-ref.xht" rel="match" />
|
||||
<style>
|
||||
.content {
|
||||
font-family: Ahem;
|
||||
font-size: 20px;
|
||||
line-height: 1em;
|
||||
color: green;
|
||||
flow-into: flow;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: flex;
|
||||
min-height: 120px;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.region {
|
||||
flex: 1 1 33%;
|
||||
flow-from: flow;
|
||||
}
|
||||
|
||||
.break {
|
||||
/* Current (Jul 2013) standard way of region breaking */
|
||||
break-after: region;
|
||||
/* Old, non-standard but implemented way of region breaking */
|
||||
region-break-after: always;
|
||||
}
|
||||
|
||||
.red {
|
||||
background-color: red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<ul>
|
||||
<li>Test passes if you see three horizontal green stripes.</li>
|
||||
<li>You shouldn't see any red.</li>
|
||||
</ul>
|
||||
<div class="content">
|
||||
XXXX<br /><div class="break"></div>
|
||||
XXXX<br /><div class="break"></div>
|
||||
XXXX<br />
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="region"><p class="red"> </p></div>
|
||||
<div class="region"> </div>
|
||||
<div class="region"> </div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,71 @@
|
|||
<!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 Regions: nested regions in flexbox</title>
|
||||
<link href="mailto:badea@adobe.com" rel="author" title="Catalin Badea" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#the-flow-from-property" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#rfcb-flow-fragment-height-resolution" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#layout-algorithm" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-direction" rel="help" />
|
||||
<meta content="ahem" name="flags" />
|
||||
<meta content="Test checks that nested regions placed in flex containers
|
||||
are laid out properly. The first flow (blue content) is nested inside the second flow (green content). The user
|
||||
should see three horizontal stripes with the following colors: green, blue, green." name="assert" />
|
||||
<link href="reference/autoheight-regions-in-autoheight-flexbox-004-ref.xht" rel="match" />
|
||||
<style>
|
||||
.c1, .c2 {
|
||||
font-family: Ahem;
|
||||
font-size: 20px;
|
||||
line-height: 1em;
|
||||
}
|
||||
|
||||
.c1 {
|
||||
color: blue;
|
||||
flow-into: f1;
|
||||
margin-top: 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.c2 {
|
||||
color: green;
|
||||
flow-into: f2;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.r1 {
|
||||
flow-from: f1;
|
||||
}
|
||||
.r2 {
|
||||
flow-from: f2;
|
||||
}
|
||||
|
||||
.red {
|
||||
background-color: red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<ul>
|
||||
<li>Test passes if you see a column of three horizontal stripes with colors in the following order:
|
||||
green, blue, green.</li>
|
||||
<li>You shouldn't see any red.</li>
|
||||
</ul>
|
||||
<div class="c1">
|
||||
XXX
|
||||
</div>
|
||||
<div class="c2">
|
||||
<div class="flex">
|
||||
XXX
|
||||
<div class="r1"></div>
|
||||
</div>
|
||||
XXX
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="r2"><p class="red"> </p></div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,89 @@
|
|||
<!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 Regions: Auto-height regions inside fixed sized flexbox</title>
|
||||
<link href="mailto:badea@adobe.com" rel="author" title="Catalin Badea" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#rfcb-flow-fragment-height-resolution" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#the-flow-into-property" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#the-flow-from-property" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#layout-algorithm" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-grow" rel="help" />
|
||||
<meta content="ahem" name="flags" />
|
||||
<meta content="Test checks that auto-height regions respect the flex grow property when placed
|
||||
inside a fixed sized flexbox with a single row." name="assert" />
|
||||
<link href="reference/autoheight-regions-in-fixed-sized-flexbox-001-ref.xht" rel="match" />
|
||||
<style>
|
||||
.content1, .content2 {
|
||||
font-family: Ahem;
|
||||
line-height: 1em;
|
||||
font-size: 20px;
|
||||
}
|
||||
.content1 {
|
||||
color: green;
|
||||
flow-into: flow1;
|
||||
}
|
||||
|
||||
.content2 {
|
||||
color: blue;
|
||||
flow-into: flow2;
|
||||
}
|
||||
|
||||
#fixed {
|
||||
height: 200px;
|
||||
width: 100px;
|
||||
background-color: blue;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: flex;
|
||||
height: 200px;
|
||||
width: 500px;
|
||||
}
|
||||
|
||||
.fromFlow1 {
|
||||
flow-from: flow1;
|
||||
flex-grow: 0;
|
||||
}
|
||||
|
||||
.fromFlow2 {
|
||||
flow-from: flow2;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.red {
|
||||
background-color: red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<ul>
|
||||
<li>Test passes if you can see two squares placed on the same horizontal line. Each square consists of two
|
||||
vertical halves. The left square has the left half colored green and the right half colored blue.
|
||||
The right square has left half colored blue and the right half colored green.</li>
|
||||
<li>You shouldn't see any red.</li>
|
||||
</ul>
|
||||
<div class="content1">
|
||||
XXXXX<br />XXXXX<br />XXXXX<br />XXXXX<br />
|
||||
XXXXX<br />XXXXX<br />XXXXX<br />XXXXX<br />
|
||||
XXXXX<br />XXXXX<br />XXXXX<br />XXXXX<br />
|
||||
XXXXX<br />XXXXX<br />XXXXX<br />XXXXX<br />
|
||||
XXXXX<br />XXXXX<br />XXXXX<br />XXXXX<br />
|
||||
</div>
|
||||
<div class="content2">
|
||||
XXXXX<br />XXXXX<br />XXXXX<br />XXXXX<br />
|
||||
XXXXX<br />XXXXX<br />XXXXX<br />XXXXX<br />
|
||||
XXXXX<br />XXXXX<br />
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="fromFlow1">
|
||||
</div>
|
||||
<div class="fromFlow2">
|
||||
</div>
|
||||
<div id="fixed">
|
||||
</div>
|
||||
<div class="fromFlow1">
|
||||
<p class="red"> </p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,94 @@
|
|||
<!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 Regions: Auto-height regions inside fixed sized flexbox with column flow</title>
|
||||
<link href="mailto:badea@adobe.com" rel="author" title="Catalin Badea" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#rfcb-flow-fragment-height-resolution" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#the-flow-into-property" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#the-flow-from-property" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#layout-algorithm" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-grow" rel="help" />
|
||||
<meta content="ahem" name="flags" />
|
||||
<meta content="Test checks that auto-height regions placed inside a fixed sized flexbox with
|
||||
column flow have the correct computed height. There are two regions placed inside the same flex container
|
||||
having the same 'grow' value. The space should be distributed evenly between the two." name="assert" />
|
||||
<link href="reference/autoheight-regions-in-fixed-sized-flexbox-002-ref.xht" rel="match" />
|
||||
<style>
|
||||
.content1, .content2 {
|
||||
font-family: Ahem;
|
||||
line-height: 1em;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.content1 {
|
||||
color: green;
|
||||
flow-into: flow1;
|
||||
}
|
||||
|
||||
.content2 {
|
||||
color: blue;
|
||||
flow-into: flow2;
|
||||
}
|
||||
|
||||
#fixed {
|
||||
height: 100px;
|
||||
width: 200px;
|
||||
background-color: blue;
|
||||
flex-grow: 0;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: flex;
|
||||
height: 400px;
|
||||
width: 200px;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.fromFlow1 {
|
||||
flow-from: flow1;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.fromFlow2 {
|
||||
flow-from: flow2;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.red {
|
||||
background-color: red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<ul>
|
||||
<li>Test passes if you can see two squares: a green square at the top and a blue square at the bottom.</li>
|
||||
<li>The two squares should be of the same size.</li>
|
||||
<li>You shouldn't see any red.</li>
|
||||
</ul>
|
||||
<div class="content1">
|
||||
XXXXXXXXXX<br />XXXXXXXXXX<br />
|
||||
XXXXXXXXXX<br />XXXXXXXXXX<br />
|
||||
XXXXXXXXXX<br />XXXXXXXXXX<br />
|
||||
XXXXXXXXXX<br />XXXXXXXXXX<br />
|
||||
XXXXXXXXXX<br />XXXXXXXXXX
|
||||
</div>
|
||||
<div class="content2">
|
||||
XXXXXXXXXX<br />XXXXXXXXXX<br />
|
||||
XXXXXXXXXX<br />XXXXXXXXXX<br />
|
||||
XXXXXXXXXX<br />
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="fromFlow1">
|
||||
</div>
|
||||
<div class="fromFlow2">
|
||||
</div>
|
||||
<div id="fixed">
|
||||
</div>
|
||||
<!-- This shouldn't get any content if the flex container distributes space evenly between the first two
|
||||
regions. -->
|
||||
<div class="fromFlow1">
|
||||
<p class="red"> </p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,107 @@
|
|||
<!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 Regions: Auto-height regions inside a fixed sized flexbox with column wrap flow</title>
|
||||
<link href="mailto:badea@adobe.com" rel="author" title="Catalin Badea" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#rfcb-flow-fragment-height-resolution" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#the-flow-into-property" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#the-flow-from-property" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#layout-algorithm" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-wrap" rel="help" />
|
||||
<meta content="ahem" name="flags" />
|
||||
<meta content="Test checks the layout of auto-height regions placed inside a flexbox with a fixed
|
||||
size and column wrap flow. The flex container should have two columns with three regions each." name="assert" />
|
||||
<link href="reference/autoheight-regions-in-fixed-sized-flexbox-003-ref.xht" rel="match" />
|
||||
<style>
|
||||
.content {
|
||||
font-family: Ahem;
|
||||
line-height: 1em;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
#c1 {
|
||||
flow-into: f1;
|
||||
color: green;
|
||||
}
|
||||
|
||||
#c2 {
|
||||
flow-into: f2;
|
||||
color: blue;
|
||||
}
|
||||
|
||||
.flex {
|
||||
height: 120px;
|
||||
width: 200px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.region1 {
|
||||
flow-from: f1;
|
||||
width: 100px;
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
.region2 {
|
||||
flow-from: f2;
|
||||
break-after: always;
|
||||
width: 100px;
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
.break {
|
||||
/* Current (Jul 2013) standard way of region breaking */
|
||||
break-after: region;
|
||||
/* Old, non-standard but implemented way of region breaking */
|
||||
region-break-after: always;
|
||||
}
|
||||
|
||||
.red {
|
||||
background-color: red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<ul>
|
||||
<li>Test passes if you see two columns with a total of 6 alternating horizontal green and blue stripes.</li>
|
||||
<li>You shouldn't see any red.</li>
|
||||
</ul>
|
||||
<div id="c1" class="content">
|
||||
XXXXX<br />
|
||||
XXXXX
|
||||
<div class="break"></div>
|
||||
XXXXX<br />
|
||||
XXXXX
|
||||
<div class="break"></div>
|
||||
XXXXX<br />
|
||||
XXXXX
|
||||
</div>
|
||||
|
||||
<div id="c2" class="content">
|
||||
XXXXX<br />
|
||||
XXXXX
|
||||
<div class="break"></div>
|
||||
XXXXX<br />
|
||||
XXXXX
|
||||
<div class="break"></div>
|
||||
XXXXX<br />
|
||||
XXXXX
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="region1">
|
||||
</div>
|
||||
<div class="region2">
|
||||
</div>
|
||||
<div class="region1">
|
||||
</div>
|
||||
<div class="region2">
|
||||
</div>
|
||||
<div class="region1">
|
||||
</div>
|
||||
<div class="region2">
|
||||
<p class="red"> </p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,71 @@
|
|||
<!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 Regions: Auto-height region in fixed sized flexbox using flex basis</title>
|
||||
<link href="mailto:badea@adobe.com" rel="author" title="Catalin Badea" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#rfcb-flow-fragment-height-resolution" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#the-flow-into-property" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#the-flow-from-property" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#layout-algorithm" rel="help" />
|
||||
<meta content="ahem" name="flags" />
|
||||
<meta content="Test checks the layout of regions placed inside a fixed sized flexbox using flex
|
||||
basis and column flow. The flex container should force the first region to break by constraining its height." name="assert" />
|
||||
<link href="reference/autoheight-regions-in-fixed-sized-flexbox-004-ref.xht" rel="match" />
|
||||
<style>
|
||||
.content {
|
||||
font-family: Ahem;
|
||||
font-size: 20px;
|
||||
line-height: 1em;
|
||||
color: green;
|
||||
flow-into: flow;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: flex;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
flex-direction: column;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.fixed {
|
||||
flex-basis: 60%;
|
||||
}
|
||||
|
||||
.region {
|
||||
flow-from: flow;
|
||||
}
|
||||
|
||||
#first {
|
||||
flex-basis: 40%;
|
||||
}
|
||||
|
||||
#second {
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
.red {
|
||||
background-color: red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<ul>
|
||||
<li>Test passes if you see two green stripes.</li>
|
||||
<li>You should not see any red.</li>
|
||||
</ul>
|
||||
<div class="content">
|
||||
XXXXX<br />
|
||||
XXXXX<br />
|
||||
XXXXX<br />
|
||||
XXXXX<br />
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="fixed"></div>
|
||||
<div id="first" class="region"></div>
|
||||
</div>
|
||||
<div id="second" class="region">
|
||||
<p class="red"> </p>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,61 @@
|
|||
<!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 Regions: Auto-height regions in fixed sized flexboxes with align-items and justify-content</title>
|
||||
<link href="mailto:badea@adobe.com" rel="author" title="Catalin Badea" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#rfcb-flow-fragment-height-resolution" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#layout-algorithm" rel="help" />
|
||||
<meta content="Test checks auto-height regions' layout when placed inside a flexbox with using
|
||||
align-items and justify-content properties. The flowed content should be fragmented between the three regions
|
||||
and the flex container should distribute the remaining horizontal space evenly around the regions." name="assert" />
|
||||
<link href="reference/autoheight-regions-in-fixed-sized-flexbox-005-ref.xht" rel="match" />
|
||||
<style>
|
||||
.content {
|
||||
font-family: Ahem;
|
||||
font-size: 20px;
|
||||
line-height: 1em;
|
||||
color: green;
|
||||
flow-into: flow;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-around;
|
||||
height: 100px;
|
||||
width: 420px;
|
||||
}
|
||||
|
||||
.region {
|
||||
flow-from: flow;
|
||||
}
|
||||
|
||||
.break {
|
||||
/* Current (Jul 2013) standard way of region breaking */
|
||||
break-after: region;
|
||||
/* Old, non-standard but implemented way of region breaking */
|
||||
region-break-after: always;
|
||||
}
|
||||
|
||||
.red {
|
||||
background-color: red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<ul>
|
||||
<li>Test passes if you see three horizontal green stripes.</li>
|
||||
<li>You shouldn't see any red.</li>
|
||||
</ul>
|
||||
<div class="content">
|
||||
<div class="break">XXXX</div>
|
||||
<div class="break">XXXX</div>
|
||||
<div class="break">XXXX</div>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="region"></div>
|
||||
<div class="region"></div>
|
||||
<div class="region"><p class="red"> </p></div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,70 @@
|
|||
<!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 Regions: auto-height regions inside a flex container with fixed size</title>
|
||||
<link href="mailto:badea@adobe.com" rel="author" title="Catalin Badea" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#rfcb-flow-fragment-height-resolution" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#the-flow-into-property" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#the-flow-from-property" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#layout-algorithm" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-wrap" rel="help" />
|
||||
<meta content="Test that the flex container stretches a region flex item with a height smaller than
|
||||
the flex container's inner cross size." name="assert" />
|
||||
<link href="reference/autoheight-regions-in-fixed-sized-flexbox-006-ref.xht" rel="match" />
|
||||
<style>
|
||||
#c1, #c2 {
|
||||
font-family: Ahem;
|
||||
font-size: 20px;
|
||||
line-height: 1em;
|
||||
}
|
||||
#c1 {
|
||||
color: green;
|
||||
flow-into: flow1;
|
||||
}
|
||||
#c2 {
|
||||
color: blue;
|
||||
flow-into: flow2;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: flex;
|
||||
flex-direction: row wrap;
|
||||
flex: auto;
|
||||
height: 80px;
|
||||
width: 200px;
|
||||
}
|
||||
.region1 {
|
||||
flow-from: flow1;
|
||||
background-color: green;
|
||||
}
|
||||
.region2 {
|
||||
flow-from: flow2;
|
||||
}
|
||||
|
||||
.red {
|
||||
background-color: red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<ul>
|
||||
<li>Test passes if you see a rectangle having the left half colored green and the right half colored
|
||||
blue.</li>
|
||||
<li>You shouldn't see any red.</li>
|
||||
</ul>
|
||||
<div id="c1">
|
||||
XXXX<br />
|
||||
XXXX
|
||||
</div>
|
||||
<div id="c2">
|
||||
XXXX<br />
|
||||
XXXX<br />
|
||||
XXXX<br />
|
||||
XXXX
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="region1"></div>
|
||||
<div class="region2"><p class="red"> </p></div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,61 @@
|
|||
<!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 Regions: auto-height regions inside fixed sized flexbox</title>
|
||||
<link href="mailto:badea@adobe.com" rel="author" title="Catalin Badea" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#rfcb-flow-fragment-height-resolution" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#the-flow-into-property" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#the-flow-from-property" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#layout-algorithm" rel="help" />
|
||||
<meta content="ahem" name="flags" />
|
||||
<meta content="Test that using the flex-basis property sizes the flex items to a percentage of
|
||||
the flex container's height when said items are auto-height regions. The last region, the outside the flex
|
||||
container should not be visible." name="assert" />
|
||||
<link href="reference/autoheight-regions-in-fixed-sized-flexbox-007-ref.xht" rel="match" />
|
||||
<style>
|
||||
.content {
|
||||
font-family: Ahem;
|
||||
font-size: 20px;
|
||||
line-height: 1em;
|
||||
color: green;
|
||||
flow-into: flow;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-around;
|
||||
height: 200px;
|
||||
width: 80px;
|
||||
}
|
||||
|
||||
.region {
|
||||
flex-basis: 10%;
|
||||
flow-from: flow;
|
||||
}
|
||||
|
||||
.red {
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<ul>
|
||||
<li>Test passes if you see you three identical green stripes.</li>
|
||||
<li>You shouldn't see any red.</li>
|
||||
</ul>
|
||||
<div class="content">
|
||||
XXXX<br />
|
||||
XXXX<br />
|
||||
XXXX<br />
|
||||
XXXX
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="region"></div>
|
||||
<div class="region"></div>
|
||||
<div class="region"></div>
|
||||
</div>
|
||||
<div class="region"><p class="red"> </p></div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,59 @@
|
|||
<!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 Regions: auto-height regions with max height in fixed sized flexbox</title>
|
||||
<link href="mailto:badea@adobe.com" rel="author" title="Catalin Badea" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#rfcb-flow-fragment-height-resolution" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#the-flow-into-property" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#the-flow-from-property" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#layout-algorithm" rel="help" />
|
||||
<meta content="ahem" name="flags" />
|
||||
<meta content="Test that the max-height property is applied to regions placed inside a fixed
|
||||
sized flexbox with a column flow. The flex container should not flex the region flex items beyond their
|
||||
max height value." name="assert" />
|
||||
<link href="reference/autoheight-regions-in-fixed-sized-flexbox-008-ref.xht" rel="match" />
|
||||
<style>
|
||||
.content {
|
||||
font-family: Ahem;
|
||||
font-size: 20px;
|
||||
line-height: 1em;
|
||||
color: green;
|
||||
flow-into: flow;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 200px;
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
.region {
|
||||
max-height: 20px;
|
||||
flex: auto;
|
||||
flow-from: flow;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.red {
|
||||
background-color: red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<ul>
|
||||
<li>Test passes if you see three horizontal green stripes.</li>
|
||||
<li>You shouldn't see any red.</li>
|
||||
</ul>
|
||||
<div class="content">
|
||||
XXXX<br />
|
||||
XXXX<br />
|
||||
XXXX
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="region"></div>
|
||||
<div class="region"></div>
|
||||
<div class="region"><p class="red"> </p></div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
68
tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/chapter-1.xht
Normal file
68
tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/chapter-1.xht
Normal file
|
@ -0,0 +1,68 @@
|
|||
|
||||
|
||||
<!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>Introduction - CSS Flexible Box Layout Module Level 1 CR Test Suite</title>
|
||||
<style type="text/css">
|
||||
@import "http://www.w3.org/StyleSheets/TR/base.css";
|
||||
@import "../indices.css";
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>CSS Flexible Box Layout Module Level 1 CR Test Suite</h1>
|
||||
<h2>Introduction (1 tests)</h2>
|
||||
<table width="100%">
|
||||
<col id="test-column"></col>
|
||||
<col id="refs-column"></col>
|
||||
<col id="flags-column"></col>
|
||||
<col id="info-column"></col>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Test</th>
|
||||
<th><abbr title="Rendering References">Refs</abbr></th>
|
||||
<th>Flags</th>
|
||||
<th>Info</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="s1">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s1">+</a>
|
||||
<a href="http://www.w3.org/TR/css-flexbox-1/#intro">1 Introduction</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s1.#flex-layout">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s1.1">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s1.1">+</a>
|
||||
<a href="http://www.w3.org/TR/css-flexbox-1/#overview">1.1 Overview</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s1.2">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s1.2">+</a>
|
||||
<a href="http://www.w3.org/TR/css-flexbox-1/#placement">1.2 Module interactions</a></th></tr>
|
||||
<!-- 1 tests -->
|
||||
<tr id="flexbox_first-line-1.2" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_first-line.xht">flexbox_first-line</a></strong></td>
|
||||
<td><a href="reference/flexbox_first-line-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | first-line
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody id="s1.3">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s1.3">+</a>
|
||||
<a href="http://www.w3.org/TR/css-flexbox-1/#values">1.3 Values</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
407
tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/chapter-10.xht
Normal file
407
tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/chapter-10.xht
Normal file
|
@ -0,0 +1,407 @@
|
|||
|
||||
|
||||
<!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>Fragmenting Flex Layout - CSS Flexible Box Layout Module Level 1 CR Test Suite</title>
|
||||
<style type="text/css">
|
||||
@import "http://www.w3.org/StyleSheets/TR/base.css";
|
||||
@import "../indices.css";
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>CSS Flexible Box Layout Module Level 1 CR Test Suite</h1>
|
||||
<h2>Fragmenting Flex Layout (16 tests)</h2>
|
||||
<table width="100%">
|
||||
<col id="test-column"></col>
|
||||
<col id="refs-column"></col>
|
||||
<col id="flags-column"></col>
|
||||
<col id="info-column"></col>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Test</th>
|
||||
<th><abbr title="Rendering References">Refs</abbr></th>
|
||||
<th>Flags</th>
|
||||
<th>Info</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="s10">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s10">+</a>
|
||||
<a href="http://www.w3.org/TR/css-flexbox-1/#pagination">10 Fragmenting Flex Layout</a></th></tr>
|
||||
<!-- 16 tests -->
|
||||
<tr id="flexbox_interactive_break-after-column-item-10" class="primary interact paged">
|
||||
<td><strong>
|
||||
<a href="flexbox_interactive_break-after-column-item.xht">flexbox_interactive_break-after-column-item</a></strong></td>
|
||||
<td></td>
|
||||
<td><abbr class="interact" title="Requires user interaction">Interact</abbr><abbr class="paged" title="Only valid for paged media">Paged</abbr></td>
|
||||
<td>flexbox | break-after, column, item
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_interactive_break-after-column-lastitem-10" class="primary interact paged">
|
||||
<td><strong>
|
||||
<a href="flexbox_interactive_break-after-column-lastitem.xht">flexbox_interactive_break-after-column-lastitem</a></strong></td>
|
||||
<td></td>
|
||||
<td><abbr class="interact" title="Requires user interaction">Interact</abbr><abbr class="paged" title="Only valid for paged media">Paged</abbr></td>
|
||||
<td>flexbox | break-after, column, item
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_interactive_break-after-container-10" class="primary interact paged">
|
||||
<td><strong>
|
||||
<a href="flexbox_interactive_break-after-container.xht">flexbox_interactive_break-after-container</a></strong></td>
|
||||
<td></td>
|
||||
<td><abbr class="interact" title="Requires user interaction">Interact</abbr><abbr class="paged" title="Only valid for paged media">Paged</abbr></td>
|
||||
<td>flexbox | break-after, singleline, container
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_interactive_break-after-item-10" class="primary interact paged">
|
||||
<td><strong>
|
||||
<a href="flexbox_interactive_break-after-item.xht">flexbox_interactive_break-after-item</a></strong></td>
|
||||
<td></td>
|
||||
<td><abbr class="interact" title="Requires user interaction">Interact</abbr><abbr class="paged" title="Only valid for paged media">Paged</abbr></td>
|
||||
<td>flexbox | break-after, singleline, item
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_interactive_break-after-line-10" class="primary interact paged">
|
||||
<td><strong>
|
||||
<a href="flexbox_interactive_break-after-line.xht">flexbox_interactive_break-after-line</a></strong></td>
|
||||
<td></td>
|
||||
<td><abbr class="interact" title="Requires user interaction">Interact</abbr><abbr class="paged" title="Only valid for paged media">Paged</abbr></td>
|
||||
<td>flexbox | break-after, line
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_interactive_break-after-line-order-10" class="primary interact paged">
|
||||
<td><strong>
|
||||
<a href="flexbox_interactive_break-after-line-order.xht">flexbox_interactive_break-after-line-order</a></strong></td>
|
||||
<td></td>
|
||||
<td><abbr class="interact" title="Requires user interaction">Interact</abbr><abbr class="paged" title="Only valid for paged media">Paged</abbr></td>
|
||||
<td>flexbox | order, break-after, multiline
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_interactive_break-after-multiline-10" class="primary interact paged">
|
||||
<td><strong>
|
||||
<a href="flexbox_interactive_break-after-multiline.xht">flexbox_interactive_break-after-multiline</a></strong></td>
|
||||
<td></td>
|
||||
<td><abbr class="interact" title="Requires user interaction">Interact</abbr><abbr class="paged" title="Only valid for paged media">Paged</abbr></td>
|
||||
<td>flexbox | break-after, multiline
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_interactive_break-before-column-firstitem-10" class="primary interact paged">
|
||||
<td><strong>
|
||||
<a href="flexbox_interactive_break-before-column-firstitem.xht">flexbox_interactive_break-before-column-firstitem</a></strong></td>
|
||||
<td></td>
|
||||
<td><abbr class="interact" title="Requires user interaction">Interact</abbr><abbr class="paged" title="Only valid for paged media">Paged</abbr></td>
|
||||
<td>flexbox | break-before, column, item
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_interactive_break-before-column-item-10" class="primary interact paged">
|
||||
<td><strong>
|
||||
<a href="flexbox_interactive_break-before-column-item.xht">flexbox_interactive_break-before-column-item</a></strong></td>
|
||||
<td></td>
|
||||
<td><abbr class="interact" title="Requires user interaction">Interact</abbr><abbr class="paged" title="Only valid for paged media">Paged</abbr></td>
|
||||
<td>flexbox | break-before, column, item
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_interactive_break-before-container-10" class="primary interact paged">
|
||||
<td><strong>
|
||||
<a href="flexbox_interactive_break-before-container.xht">flexbox_interactive_break-before-container</a></strong></td>
|
||||
<td></td>
|
||||
<td><abbr class="interact" title="Requires user interaction">Interact</abbr><abbr class="paged" title="Only valid for paged media">Paged</abbr></td>
|
||||
<td>flexbox | break-before, singleline, container
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_interactive_break-before-item-10" class="primary interact paged">
|
||||
<td><strong>
|
||||
<a href="flexbox_interactive_break-before-item.xht">flexbox_interactive_break-before-item</a></strong></td>
|
||||
<td></td>
|
||||
<td><abbr class="interact" title="Requires user interaction">Interact</abbr><abbr class="paged" title="Only valid for paged media">Paged</abbr></td>
|
||||
<td>flexbox | break-before, singleline, item
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_interactive_break-before-multiline-10" class="primary interact paged">
|
||||
<td><strong>
|
||||
<a href="flexbox_interactive_break-before-multiline.xht">flexbox_interactive_break-before-multiline</a></strong></td>
|
||||
<td></td>
|
||||
<td><abbr class="interact" title="Requires user interaction">Interact</abbr><abbr class="paged" title="Only valid for paged media">Paged</abbr></td>
|
||||
<td>flexbox | break-before, multiline
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_interactive_break-natural-10" class="primary interact paged">
|
||||
<td><strong>
|
||||
<a href="flexbox_interactive_break-natural.xht">flexbox_interactive_break-natural</a></strong></td>
|
||||
<td></td>
|
||||
<td><abbr class="interact" title="Requires user interaction">Interact</abbr><abbr class="paged" title="Only valid for paged media">Paged</abbr></td>
|
||||
<td>flexbox | natural breaks
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_interactive_paged-overflow-10" class="primary interact paged">
|
||||
<td><strong>
|
||||
<a href="flexbox_interactive_paged-overflow.xht">flexbox_interactive_paged-overflow</a></strong></td>
|
||||
<td></td>
|
||||
<td><abbr class="interact" title="Requires user interaction">Interact</abbr><abbr class="paged" title="Only valid for paged media">Paged</abbr></td>
|
||||
<td>flexbox | @page and paged overflow
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_interactive_paged-overflow-2-10" class="primary interact paged">
|
||||
<td><strong>
|
||||
<a href="flexbox_interactive_paged-overflow-2.xht">flexbox_interactive_paged-overflow-2</a></strong></td>
|
||||
<td></td>
|
||||
<td><abbr class="interact" title="Requires user interaction">Interact</abbr><abbr class="paged" title="Only valid for paged media">Paged</abbr></td>
|
||||
<td>flexbox | paged overflow
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="row-flexbox-break-10" class="ahem">
|
||||
<td>
|
||||
<a href="row-flexbox-break.xht">row-flexbox-break</a></td>
|
||||
<td><a href="reference/row-flexbox-break-ref.xht">=</a> </td>
|
||||
<td><abbr class="ahem" title="Requires Ahem font">Ahem</abbr></td>
|
||||
<td>CSS Regions: row flex container fragmentation
|
||||
<ul class="assert">
|
||||
<li>Test checks that a flex container with row flow is split between regions.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody id="s10.1">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s10.1">+</a>
|
||||
<a href="http://www.w3.org/TR/css-flexbox-1/#pagination-algo">10.1 Sample Flex Fragmentation Algorithm</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#abstract">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#acknowledgments">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#biblio-css21">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#biblio-css3-align">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#biblio-css3-break">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#biblio-css3-sizing">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#biblio-css3-writing-modes">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#biblio-css3ui">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#biblio-css3val">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#biblio-html40">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#biblio-rfc2119">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#change-2012-atomic-painting">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#change-2012-flex-basis-zero">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#change-2012-flex-continuity">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#change-2012-flex-line-bug">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#change-2012-flex-line-floor">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#change-2012-intrinsic-ratio">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#change-2012-intrinsic-sizes">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#change-2012-main-depend-cross">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#change-2012-min-width">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#change-2012-percent-margins">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#change-2012-static-pos">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#change-2012-stretch-auto">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#change-2012-stretch-definite">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#change-2012-unresolvable-basis">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#change-201403-abspos-ordering">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#change-201403-clamp-single-line">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#change-201403-clarify">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#change-201403-clarify-stretched">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#change-201403-css21-staticpos">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#change-201403-definite-flexing">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#change-201403-flex-animation">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#change-201403-flex-basis-auto">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#change-201403-max-intrinsic">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#change-201403-min-auto-intrinsic-percentages">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#change-201403-min-auto-main-size-basis">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#change-201403-min-auto-not">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#change-201403-min-auto-ratio">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#change-201403-resolve-flex">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#change-201403-substantive">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#changes">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#changes-2012">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#changes-2014-clarify">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#changes-2014-substantive">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#changes-201403">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#clarify-2012-abspos-items">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#clarify-2012-clamping">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#clarify-2012-display-blockification">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#clarify-2012-first-line-letter">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#clarify-2012-flex-container-sizing">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#clarify-2012-float-display">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#clarify-2012-line-breaking">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#clarify-2012-overflow-flex-containers">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#clarify-2012-painting-order">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#clarify-2012-stretch-computed-auto">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#clarify-2012-table-anon-boxes">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#clarify-2012-white-space">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#conformance">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#conformance-classes">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#contents">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#conventions">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#experimental">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#index">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#informative">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#issues-index">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#normative">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#overview-example">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#partial">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#property-index">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#quiet-pubrules-1">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#quiet-pubrules-2">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#references">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#status">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#subtitle">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#testing">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#title">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s.#w3c_process_revision">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
390
tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/chapter-2.xht
Normal file
390
tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/chapter-2.xht
Normal file
|
@ -0,0 +1,390 @@
|
|||
|
||||
|
||||
<!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>Flex Layout Box Model and Terminology - CSS Flexible Box Layout Module Level 1 CR Test Suite</title>
|
||||
<style type="text/css">
|
||||
@import "http://www.w3.org/StyleSheets/TR/base.css";
|
||||
@import "../indices.css";
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>CSS Flexible Box Layout Module Level 1 CR Test Suite</h1>
|
||||
<h2>Flex Layout Box Model and Terminology (30 tests)</h2>
|
||||
<table width="100%">
|
||||
<col id="test-column"></col>
|
||||
<col id="refs-column"></col>
|
||||
<col id="flags-column"></col>
|
||||
<col id="info-column"></col>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Test</th>
|
||||
<th><abbr title="Rendering References">Refs</abbr></th>
|
||||
<th>Flags</th>
|
||||
<th>Info</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="s2">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s2">+</a>
|
||||
<a href="http://www.w3.org/TR/css-flexbox-1/#box-model">2 Flex Layout Box Model and Terminology</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s2.#cross">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s2.#cross-axis">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s2.#cross-dimension">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s2.#cross-end">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s2.#cross-size">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s2.#cross-size-property">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s2.#cross-start">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s2.#flex-container">
|
||||
<!-- 4 tests -->
|
||||
<tr id="flexbox_generated-2.#flex-container" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_generated.xht">flexbox_generated</a></strong></td>
|
||||
<td><a href="reference/flexbox_generated-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | flexcontainer vs generated content
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_generated-container-2.#flex-container" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_generated-container.xht">flexbox_generated-container</a></strong></td>
|
||||
<td><a href="reference/flexbox_generated-container-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | flexcontainer vs generated content
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_generated-flex-2.#flex-container" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_generated-flex.xht">flexbox_generated-flex</a></strong></td>
|
||||
<td><a href="reference/flexbox_generated-flex-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | flexcontainer via generated content
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_generated-nested-flex-2.#flex-container" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_generated-nested-flex.xht">flexbox_generated-nested-flex</a></strong></td>
|
||||
<td><a href="reference/flexbox_generated-flex-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | flexcontainer via generated content
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody id="s2.#flex-direction">
|
||||
<!-- 26 tests -->
|
||||
<tr id="autoheight-regions-in-autoheight-flexbox-004-2.#flex-direction" class="ahem">
|
||||
<td>
|
||||
<a href="autoheight-regions-in-autoheight-flexbox-004.xht">autoheight-regions-in-autoheight-flexbox-004</a></td>
|
||||
<td><a href="reference/autoheight-regions-in-autoheight-flexbox-004-ref.xht">=</a> </td>
|
||||
<td><abbr class="ahem" title="Requires Ahem font">Ahem</abbr></td>
|
||||
<td>CSS Regions: nested regions in flexbox
|
||||
<ul class="assert">
|
||||
<li>Test checks that nested regions placed in flex containers are laid out properly. The first flow (blue content) is nested inside the second flow (green content). The user should see three horizontal stripes with the following colors: green, blue, green.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flex-direction-2.#flex-direction" class="primary">
|
||||
<td><strong>
|
||||
<a href="flex-direction.xht">flex-direction</a></strong></td>
|
||||
<td><a href="reference/flex-direction.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flex flow direction
|
||||
<ul class="assert">
|
||||
<li>The flow of flex items in the the flex container should observe the flex-direction property.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flex-direction-column-reverse-2.#flex-direction" class="primary">
|
||||
<td><strong>
|
||||
<a href="flex-direction-column-reverse.xht">flex-direction-column-reverse</a></strong></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>flex-direction: column-reverse swaps main start and end directions
|
||||
<ul class="assert">
|
||||
<li>This test checks that column-reverse flex-direction swaps the main start and main end directions</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flex-direction-modify-2.#flex-direction" class="primary">
|
||||
<td><strong>
|
||||
<a href="flex-direction-modify.xht">flex-direction-modify</a></strong></td>
|
||||
<td><a href="reference/flex-direction-modify.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flex flow direction
|
||||
<ul class="assert">
|
||||
<li>Changing 'flex-direction' with JavaScript and then changing it back should returns to the original look.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flex-direction-row-2.#flex-direction" class="primary">
|
||||
<td><strong>
|
||||
<a href="flex-direction-row.xht">flex-direction-row</a></strong></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>flex-direction:row axis matches that of writing mode inline axis
|
||||
<ul class="assert">
|
||||
<li>This test checks that the main axis of the row flex-direction has the same orientation as the inline axis of the current writing mode</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flex-direction-row-reverse-2.#flex-direction" class="primary">
|
||||
<td><strong>
|
||||
<a href="flex-direction-row-reverse.xht">flex-direction-row-reverse</a></strong></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>flow-direction:row-reverse swaps main start and end directions
|
||||
<ul class="assert">
|
||||
<li>This test checks that row-reverse flex-direction swaps the main start and main end directions</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flex-direction-row-vertical-2.#flex-direction" class="primary">
|
||||
<td><strong>
|
||||
<a href="flex-direction-row-vertical.xht">flex-direction-row-vertical</a></strong></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>flex-direction:row has the same orientation as inline axis
|
||||
<ul class="assert">
|
||||
<li>This test checks that the main axis of the row flex-direction has the same orientation as the inline axis of the current vertical writing mode</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flex-direction-with-element-insert-2.#flex-direction" class="primary">
|
||||
<td><strong>
|
||||
<a href="flex-direction-with-element-insert.xht">flex-direction-with-element-insert</a></strong></td>
|
||||
<td><a href="reference/flex-direction-with-element-insert.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flex flow direction
|
||||
<ul class="assert">
|
||||
<li>The flex items inserted by script shuould follow the right direction what the flex-direction property directives.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flex-flow-001-2.#flex-direction" class="">
|
||||
<td>
|
||||
<a href="flex-flow-001.xht">flex-flow-001</a></td>
|
||||
<td><a href="reference/flex-flow-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flex-flow - row nowrap
|
||||
<ul class="assert">
|
||||
<li>The 'flex-flow' property set 'row nowrap' controls the flex container is single-line</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flex-flow-002-2.#flex-direction" class="">
|
||||
<td>
|
||||
<a href="flex-flow-002.xht">flex-flow-002</a></td>
|
||||
<td><a href="reference/flex-flow-002-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flex-flow - row wrap
|
||||
<ul class="assert">
|
||||
<li>The 'flex-flow' property set 'row wrap' controls the flex container is multi-line</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flex-flow-003-2.#flex-direction" class="">
|
||||
<td>
|
||||
<a href="flex-flow-003.xht">flex-flow-003</a></td>
|
||||
<td><a href="reference/flex-flow-002-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flex-flow - row wrap-reverse
|
||||
<ul class="assert">
|
||||
<li>The 'flex-flow' property set 'row wrap-reverse' controls the flex container is multi-line but the cross-start and cross-end directions are swapped</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flex-flow-004-2.#flex-direction" class="">
|
||||
<td>
|
||||
<a href="flex-flow-004.xht">flex-flow-004</a></td>
|
||||
<td><a href="reference/flex-flow-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flex-flow - row-reverse nowrap
|
||||
<ul class="assert">
|
||||
<li>The 'flex-flow' property set 'row-reverse nowrap' controls the flex container is single-line, but the main-start and main-end directions are swapped</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flex-flow-005-2.#flex-direction" class="">
|
||||
<td>
|
||||
<a href="flex-flow-005.xht">flex-flow-005</a></td>
|
||||
<td><a href="reference/flex-flow-002-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flex-flow - row-reverse wrap
|
||||
<ul class="assert">
|
||||
<li>The 'flex-flow' property set 'row-reverse wrap' controls the flex container is multi-line but the main-start and main-end directions are swapped</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flex-flow-006-2.#flex-direction" class="">
|
||||
<td>
|
||||
<a href="flex-flow-006.xht">flex-flow-006</a></td>
|
||||
<td><a href="reference/flex-flow-002-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flex-flow - row-reverse wrap-reverse
|
||||
<ul class="assert">
|
||||
<li>The 'flex-flow' property set 'row-reverse wrap-reverse' controls the flex container is multi-line but the main-start and main-end, cross-start and cross-end directions are all swapped</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flex-flow-007-2.#flex-direction" class="">
|
||||
<td>
|
||||
<a href="flex-flow-007.xht">flex-flow-007</a></td>
|
||||
<td><a href="reference/flex-flow-007-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flex-flow - column nowrap
|
||||
<ul class="assert">
|
||||
<li>The 'flex-flow' property set 'column nowrap' controls the flex container is single-line, but the main axis is vertical</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flex-flow-008-2.#flex-direction" class="">
|
||||
<td>
|
||||
<a href="flex-flow-008.xht">flex-flow-008</a></td>
|
||||
<td><a href="reference/flex-flow-002-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flex-flow - column wrap
|
||||
<ul class="assert">
|
||||
<li>The 'flex-flow' property set 'column wrap' controls the flex container is multi-line but the main axis is vertical</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flex-flow-009-2.#flex-direction" class="">
|
||||
<td>
|
||||
<a href="flex-flow-009.xht">flex-flow-009</a></td>
|
||||
<td><a href="reference/flex-flow-002-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flex-flow - column wrap-reverse
|
||||
<ul class="assert">
|
||||
<li>The 'flex-flow' property set 'column wrap-reverse' controls the flex container is multi-line but the main axis is vertical, the cross-start and cross-end directions are swapped</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flex-flow-010-2.#flex-direction" class="">
|
||||
<td>
|
||||
<a href="flex-flow-010.xht">flex-flow-010</a></td>
|
||||
<td><a href="reference/flex-flow-007-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flex-flow - column-reverse nowrap
|
||||
<ul class="assert">
|
||||
<li>The 'flex-flow' property set 'column-reverse nowrap' controls the flex container is single-line, but the main axis is vertical, the main-start and main-end directions are swapped</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flex-flow-011-2.#flex-direction" class="">
|
||||
<td>
|
||||
<a href="flex-flow-011.xht">flex-flow-011</a></td>
|
||||
<td><a href="reference/flex-flow-002-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flex-flow - column-reverse wrap
|
||||
<ul class="assert">
|
||||
<li>The 'flex-flow' property set 'column-reverse wrap' controls the flex container is multi-line but the main axis is vertical, the main-start and main-end directions are swapped</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flex-flow-012-2.#flex-direction" class="">
|
||||
<td>
|
||||
<a href="flex-flow-012.xht">flex-flow-012</a></td>
|
||||
<td><a href="reference/flex-flow-002-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flex-flow - column-reverse wrap-reverse
|
||||
<ul class="assert">
|
||||
<li>The 'flex-flow' property set 'column-reverse wrap-reverse' controls the flex container is multi-line but the main axis is vertical, the 'cross-start/cross-end' and 'main-start/main-end' directions are all swapped</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_computedstyle_flex-direction-column-2.#flex-direction" class="primary dom">
|
||||
<td><strong>
|
||||
<a href="flexbox_computedstyle_flex-direction-column.xht">flexbox_computedstyle_flex-direction-column</a></strong></td>
|
||||
<td></td>
|
||||
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr></td>
|
||||
<td>flexbox | computed style | flex-direction: column
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_computedstyle_flex-direction-column-reverse-2.#flex-direction" class="primary dom">
|
||||
<td><strong>
|
||||
<a href="flexbox_computedstyle_flex-direction-column-reverse.xht">flexbox_computedstyle_flex-direction-column-reverse</a></strong></td>
|
||||
<td></td>
|
||||
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr></td>
|
||||
<td>flexbox | computed style | flex-direction: column-reverse
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_computedstyle_flex-direction-invalid-2.#flex-direction" class="primary dom">
|
||||
<td><strong>
|
||||
<a href="flexbox_computedstyle_flex-direction-invalid.xht">flexbox_computedstyle_flex-direction-invalid</a></strong></td>
|
||||
<td></td>
|
||||
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr></td>
|
||||
<td>flexbox | computed style | flex-direction: row
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_computedstyle_flex-direction-row-2.#flex-direction" class="primary dom">
|
||||
<td><strong>
|
||||
<a href="flexbox_computedstyle_flex-direction-row.xht">flexbox_computedstyle_flex-direction-row</a></strong></td>
|
||||
<td></td>
|
||||
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr></td>
|
||||
<td>flexbox | computed style | flex-direction: row
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_computedstyle_flex-direction-row-reverse-2.#flex-direction" class="primary dom">
|
||||
<td><strong>
|
||||
<a href="flexbox_computedstyle_flex-direction-row-reverse.xht">flexbox_computedstyle_flex-direction-row-reverse</a></strong></td>
|
||||
<td></td>
|
||||
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr></td>
|
||||
<td>flexbox | computed style | flex-direction: row-reverse
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_rtl-direction-2.#flex-direction" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_rtl-direction.xht">flexbox_rtl-direction</a></strong></td>
|
||||
<td><a href="reference/flexbox_rtl-direction-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | flex-direction: column-reverse | rtl
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody id="s2.#flex-item">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s2.#main">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s2.#main-axis">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s2.#main-dimension">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s2.#main-end">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s2.#main-size">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s2.#main-size-property">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s2.#main-start">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
358
tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/chapter-3.xht
Normal file
358
tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/chapter-3.xht
Normal file
|
@ -0,0 +1,358 @@
|
|||
|
||||
|
||||
<!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>Flex Containers: the flex and inline-flex display values - CSS Flexible Box Layout Module Level 1 CR Test Suite</title>
|
||||
<style type="text/css">
|
||||
@import "http://www.w3.org/StyleSheets/TR/base.css";
|
||||
@import "../indices.css";
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>CSS Flexible Box Layout Module Level 1 CR Test Suite</h1>
|
||||
<h2>Flex Containers: the flex and inline-flex display values (35 tests)</h2>
|
||||
<table width="100%">
|
||||
<col id="test-column"></col>
|
||||
<col id="refs-column"></col>
|
||||
<col id="flags-column"></col>
|
||||
<col id="info-column"></col>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Test</th>
|
||||
<th><abbr title="Rendering References">Refs</abbr></th>
|
||||
<th>Flags</th>
|
||||
<th>Info</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="s3">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s3">+</a>
|
||||
<a href="http://www.w3.org/TR/css-flexbox-1/#flex-containers">3 Flex Containers: the flex and inline-flex display values</a></th></tr>
|
||||
<!-- 35 tests -->
|
||||
<tr id="column-flexbox-break-3" class="ahem">
|
||||
<td>
|
||||
<a href="column-flexbox-break.xht">column-flexbox-break</a></td>
|
||||
<td><a href="reference/column-flexbox-break-ref.xht">=</a> </td>
|
||||
<td><abbr class="ahem" title="Requires Ahem font">Ahem</abbr></td>
|
||||
<td>CSS Regions: fragmenting a flex container with column flow
|
||||
<ul class="assert">
|
||||
<li>Test checks that a flex container with column flow is fragmented between regions.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="display-flex-001-3" class="primary">
|
||||
<td><strong>
|
||||
<a href="display-flex-001.xht">display-flex-001</a></strong></td>
|
||||
<td><a href="reference/align-content-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>An element with the 'display' property set to 'flex' establishes a new block-level flex container
|
||||
<ul class="assert">
|
||||
<li>This test checks that an element with 'display' property set to 'flex' establishes a new block-level flex container.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="display_flex_exist-3" class="primary dom script">
|
||||
<td><strong>
|
||||
<a href="display_flex_exist.xht">display_flex_exist</a></strong></td>
|
||||
<td></td>
|
||||
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
||||
<td>display_flex
|
||||
<ul class="assert">
|
||||
<li>Check if the web engine can indenfy the display value flex.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="display_inline-flex_exist-3" class="primary dom script">
|
||||
<td><strong>
|
||||
<a href="display_inline-flex_exist.xht">display_inline-flex_exist</a></strong></td>
|
||||
<td></td>
|
||||
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
||||
<td>display_inline-flex
|
||||
<ul class="assert">
|
||||
<li>Check if the web engine can identify the display value inline-flex.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-overflow-horiz-001-3" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-overflow-horiz-001.xht">flexbox-overflow-horiz-001</a></strong></td>
|
||||
<td><a href="reference/flexbox-overflow-horiz-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing 'overflow' property on a horizontal flex container, with contents not overflowing
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-overflow-horiz-002-3" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-overflow-horiz-002.xht">flexbox-overflow-horiz-002</a></strong></td>
|
||||
<td><a href="reference/flexbox-overflow-horiz-002-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing 'overflow' property on a horizontal flex container, with 'align-items: center'
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-overflow-horiz-003-3" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-overflow-horiz-003.xht">flexbox-overflow-horiz-003</a></strong></td>
|
||||
<td><a href="reference/flexbox-overflow-horiz-003-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing 'overflow' property on a horizontal flex container, with 'justify-content: space-around'
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-overflow-vert-001-3" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-overflow-vert-001.xht">flexbox-overflow-vert-001</a></strong></td>
|
||||
<td><a href="reference/flexbox-overflow-vert-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing 'overflow' property on a vertical flex container
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-overflow-vert-002-3" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-overflow-vert-002.xht">flexbox-overflow-vert-002</a></strong></td>
|
||||
<td><a href="reference/flexbox-overflow-vert-002-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing 'overflow' property on a vertical flex container, with 'align-items: center'
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-overflow-vert-003-3" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-overflow-vert-003.xht">flexbox-overflow-vert-003</a></strong></td>
|
||||
<td><a href="reference/flexbox-overflow-vert-003-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing 'overflow' property on a vertical flex container, with 'justify-content: space-around'
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-root-node-001a-3" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-root-node-001a.xht">flexbox-root-node-001a</a></strong></td>
|
||||
<td><a href="reference/flexbox-root-node-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing 'display:flex' on root node
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-root-node-001b-3" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-root-node-001b.xht">flexbox-root-node-001b</a></strong></td>
|
||||
<td><a href="reference/flexbox-root-node-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing 'display:flex' on root node
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_block-3" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_block.xht">flexbox_block</a></strong></td>
|
||||
<td><a href="reference/flexbox_empty-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | block
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_box-clear-3" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_box-clear.xht">flexbox_box-clear</a></strong></td>
|
||||
<td><a href="reference/flexbox_box-clear-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | cleared box
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_columns-3" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_columns.xht">flexbox_columns</a></strong></td>
|
||||
<td><a href="reference/flexbox_columns-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | multicol
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_columns-flexitems-3" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_columns-flexitems.xht">flexbox_columns-flexitems</a></strong></td>
|
||||
<td><a href="reference/flexbox_columns-flexitems-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | multicol on flexbox items
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_columns-flexitems-2-3" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_columns-flexitems-2.xht">flexbox_columns-flexitems-2</a></strong></td>
|
||||
<td><a href="reference/flexbox_columns-flexitems-2-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | multicol on flexbox items
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_computedstyle_display-3" class="primary dom">
|
||||
<td><strong>
|
||||
<a href="flexbox_computedstyle_display.xht">flexbox_computedstyle_display</a></strong></td>
|
||||
<td></td>
|
||||
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr></td>
|
||||
<td>flexbox | computed style | display: flex
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_computedstyle_display-inline-3" class="primary dom">
|
||||
<td><strong>
|
||||
<a href="flexbox_computedstyle_display-inline.xht">flexbox_computedstyle_display-inline</a></strong></td>
|
||||
<td></td>
|
||||
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr></td>
|
||||
<td>flexbox | computed style | display: inline-flex
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_display-3" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_display.xht">flexbox_display</a></strong></td>
|
||||
<td><a href="reference/flexbox_display-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | display error-handling
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_fbfc-3" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_fbfc.xht">flexbox_fbfc</a></strong></td>
|
||||
<td><a href="reference/flexbox_fbfc-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | flex formatting context :: float intrusion
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_fbfc2-3" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_fbfc2.xht">flexbox_fbfc2</a></strong></td>
|
||||
<td><a href="reference/flexbox_fbfc2-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | flex formatting context :: float intrusion
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_flex-formatting-interop-3" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_flex-formatting-interop.xht">flexbox_flex-formatting-interop</a></strong></td>
|
||||
<td><a href="reference/flexbox_flex-formatting-interop-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | flex formatting context :: negative margins and border box
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_inline-3" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_inline.xht">flexbox_inline</a></strong></td>
|
||||
<td><a href="reference/flexbox_inline-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | inline
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_item-clear-3" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_item-clear.xht">flexbox_item-clear</a></strong></td>
|
||||
<td><a href="reference/flexbox_item-clear-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | cleared item
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_item-float-3" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_item-float.xht">flexbox_item-float</a></strong></td>
|
||||
<td><a href="reference/flexbox_item-float-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | floated item
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_item-vertical-align-3" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_item-vertical-align.xht">flexbox_item-vertical-align</a></strong></td>
|
||||
<td><a href="reference/flexbox_item-vertical-align-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | vertical-align
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_margin-3" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_margin.xht">flexbox_margin</a></strong></td>
|
||||
<td><a href="reference/flexbox_margin-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | margins
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_nested-flex-3" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_nested-flex.xht">flexbox_nested-flex</a></strong></td>
|
||||
<td><a href="reference/flexbox_generated-flex-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | nested flexcontainer
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexible-box-float-3" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexible-box-float.xht">flexible-box-float</a></strong></td>
|
||||
<td><a href="reference/flex-box-float-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexible box flex item float effect
|
||||
<ul class="assert">
|
||||
<li>float has no effect on flex items</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="regions-flexbox-001-3" class="">
|
||||
<td>
|
||||
<a href="regions-flexbox-001.xht">regions-flexbox-001</a></td>
|
||||
<td><a href="reference/regions-flexbox-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>CSS Regions: flowing flexbox elements in region
|
||||
<ul class="assert">
|
||||
<li>Test that flex containers are flowed inside a namedflow.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="regions-flexbox-002-3" class="ahem">
|
||||
<td>
|
||||
<a href="regions-flexbox-002.xht">regions-flexbox-002</a></td>
|
||||
<td><a href="reference/regions-flexbox-001-ref.xht">=</a> </td>
|
||||
<td><abbr class="ahem" title="Requires Ahem font">Ahem</abbr></td>
|
||||
<td>CSS Regions: flowing auto-height flexbox elements in region
|
||||
<ul class="assert">
|
||||
<li>Test that flex containers with auto height are flowed inside a namedflow.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="regions-flexbox-003-3" class="ahem">
|
||||
<td>
|
||||
<a href="regions-flexbox-003.xht">regions-flexbox-003</a></td>
|
||||
<td><a href="reference/regions-flexbox-001-ref.xht">=</a> </td>
|
||||
<td><abbr class="ahem" title="Requires Ahem font">Ahem</abbr></td>
|
||||
<td>CSS Regions: fixed sized region inside a fixed sized flexbox
|
||||
<ul class="assert">
|
||||
<li>Test that content is flowed in a region placed inside a flexbox.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="regions-flexbox-004-3" class="ahem">
|
||||
<td>
|
||||
<a href="regions-flexbox-004.xht">regions-flexbox-004</a></td>
|
||||
<td><a href="reference/regions-flexbox-002-ref.xht">=</a> </td>
|
||||
<td><abbr class="ahem" title="Requires Ahem font">Ahem</abbr></td>
|
||||
<td>CSS Regions: fixed sized region inside an auto height flexbox
|
||||
<ul class="assert">
|
||||
<li>Test that content is flowed in a region placed inside a flexbox with auto-height.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="ttwf-reftest-flex-base-3" class="primary">
|
||||
<td><strong>
|
||||
<a href="ttwf-reftest-flex-base.xht">ttwf-reftest-flex-base</a></strong></td>
|
||||
<td><a href="reference/ttwf-reftest-flex-base-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>display proprety - flex
|
||||
<ul class="assert">
|
||||
<li>Statement describing what the test case is asserting</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody id="s3.#flex-formatting-context">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s3.#valdef-display-flex">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s3.#valdef-display-inline-flex">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
581
tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/chapter-4.xht
Normal file
581
tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/chapter-4.xht
Normal file
|
@ -0,0 +1,581 @@
|
|||
|
||||
|
||||
<!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>Flex Items - CSS Flexible Box Layout Module Level 1 CR Test Suite</title>
|
||||
<style type="text/css">
|
||||
@import "http://www.w3.org/StyleSheets/TR/base.css";
|
||||
@import "../indices.css";
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>CSS Flexible Box Layout Module Level 1 CR Test Suite</h1>
|
||||
<h2>Flex Items (58 tests)</h2>
|
||||
<table width="100%">
|
||||
<col id="test-column"></col>
|
||||
<col id="refs-column"></col>
|
||||
<col id="flags-column"></col>
|
||||
<col id="info-column"></col>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Test</th>
|
||||
<th><abbr title="Rendering References">Refs</abbr></th>
|
||||
<th>Flags</th>
|
||||
<th>Info</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="s4">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s4">+</a>
|
||||
<a href="http://www.w3.org/TR/css-flexbox-1/#flex-items">4 Flex Items</a></th></tr>
|
||||
<!-- 24 tests -->
|
||||
<tr id="flex-flexitem-childmargin-4" class="primary">
|
||||
<td><strong>
|
||||
<a href="flex-flexitem-childmargin.xht">flex-flexitem-childmargin</a></strong></td>
|
||||
<td><a href="reference/flex-flexitem-childmargin-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flex item child margin
|
||||
<ul class="assert">
|
||||
<li>margin should effect the orange box and green box need to align to bottom.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flex-flexitem-percentage-prescation-4" class="primary">
|
||||
<td><strong>
|
||||
<a href="flex-flexitem-percentage-prescation.xht">flex-flexitem-percentage-prescation</a></strong></td>
|
||||
<td><a href="reference/flex-flexitem-percentage-prescation-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flex item size prescation
|
||||
<ul class="assert">
|
||||
<li>no blue color could be seen.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-anonymous-items-001-4" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-anonymous-items-001.xht">flexbox-anonymous-items-001</a></strong></td>
|
||||
<td><a href="reference/flexbox-anonymous-items-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing that we gracefully handle cases where two anonymous flex items become adjacent due to "order" reordering
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-table-fixup-001a-4" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-table-fixup-001a.xht">flexbox-table-fixup-001a</a></strong></td>
|
||||
<td><a href="reference/flexbox-table-fixup-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing that table cells in a flex container get an anonymous table wrapper that forms the flex item
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-table-fixup-001b-4" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-table-fixup-001b.xht">flexbox-table-fixup-001b</a></strong></td>
|
||||
<td><a href="reference/flexbox-table-fixup-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing that the 'flex' shorthand has no effect on table cells in a flex container, since they aren't flex items
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-whitespace-handling-001a-4" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-whitespace-handling-001a.xht">flexbox-whitespace-handling-001a</a></strong></td>
|
||||
<td><a href="reference/flexbox-whitespace-handling-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Test that anonymous flex items aren't created for pure-whitespace inline content
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-whitespace-handling-001b-4" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-whitespace-handling-001b.xht">flexbox-whitespace-handling-001b</a></strong></td>
|
||||
<td><a href="reference/flexbox-whitespace-handling-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Test that flex items are created correctly
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-whitespace-handling-002-4" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-whitespace-handling-002.xht">flexbox-whitespace-handling-002</a></strong></td>
|
||||
<td><a href="reference/flexbox-whitespace-handling-002-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Test that whitespace is preserved at the edges of anonymous flex items if 'white-space: pre' is set
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-with-pseudo-elements-001-4" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-with-pseudo-elements-001.xht">flexbox-with-pseudo-elements-001</a></strong></td>
|
||||
<td><a href="reference/flexbox-with-pseudo-elements-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing that generated content nodes are treated as a flex items
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-with-pseudo-elements-002-4" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-with-pseudo-elements-002.xht">flexbox-with-pseudo-elements-002</a></strong></td>
|
||||
<td><a href="reference/flexbox-with-pseudo-elements-002-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing that generated content nodes are treated as a flex items, and honor 'order'
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-with-pseudo-elements-003-4" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-with-pseudo-elements-003.xht">flexbox-with-pseudo-elements-003</a></strong></td>
|
||||
<td><a href="reference/flexbox-with-pseudo-elements-003-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing that generated content nodes with table-part display types are wrapped with an anonymous table, which forms a flex item
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_inline-float-4" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_inline-float.xht">flexbox_inline-float</a></strong></td>
|
||||
<td><a href="reference/flexbox_empty-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | floated inline
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_stf-abspos-4" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_stf-abspos.xht">flexbox_stf-abspos</a></strong></td>
|
||||
<td><a href="reference/flexbox_empty-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | flexcontainer versus stf :: abspos
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_stf-fixpos-4" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_stf-fixpos.xht">flexbox_stf-fixpos</a></strong></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>flexbox | flexcontainer versus stf :: fixed
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_stf-float-4" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_stf-float.xht">flexbox_stf-float</a></strong></td>
|
||||
<td><a href="reference/flexbox_empty-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | flexcontainer versus stf :: float
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_stf-inline-block-4" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_stf-inline-block.xht">flexbox_stf-inline-block</a></strong></td>
|
||||
<td><a href="reference/flexbox_empty-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | flexcontainer versus stf :: inline-block
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_stf-table-4" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_stf-table.xht">flexbox_stf-table</a></strong></td>
|
||||
<td><a href="reference/flexbox_empty-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | flexcontainer versus stf :: table
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_stf-table-caption-4" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_stf-table-caption.xht">flexbox_stf-table-caption</a></strong></td>
|
||||
<td><a href="reference/flexbox_empty-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | flexcontainer versus stf :: table-caption
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_stf-table-cell-4" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_stf-table-cell.xht">flexbox_stf-table-cell</a></strong></td>
|
||||
<td><a href="reference/flexbox_empty-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | flexcontainer versus stf :: table cell
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_stf-table-row-4" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_stf-table-row.xht">flexbox_stf-table-row</a></strong></td>
|
||||
<td><a href="reference/flexbox_empty-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | flexcontainer versus stf :: table row
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_stf-table-row-group-4" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_stf-table-row-group.xht">flexbox_stf-table-row-group</a></strong></td>
|
||||
<td><a href="reference/flexbox_empty-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | flexcontainer versus stf :: table row group
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_stf-table-singleline-4" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_stf-table-singleline.xht">flexbox_stf-table-singleline</a></strong></td>
|
||||
<td><a href="reference/flexbox_stf-table-singleline-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | singleline flexcontainer versus stf :: table
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_stf-table-singleline-2-4" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_stf-table-singleline-2.xht">flexbox_stf-table-singleline-2</a></strong></td>
|
||||
<td><a href="reference/flexbox_stf-table-singleline-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | singleline flexcontainer versus stf :: table
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_table-fixed-layout-4" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_table-fixed-layout.xht">flexbox_table-fixed-layout</a></strong></td>
|
||||
<td><a href="reference/flexbox_empty-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | flexcontainers in tables
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody id="s4.#table-items">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s4.1">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s4.1">+</a>
|
||||
<a href="http://www.w3.org/TR/css-flexbox-1/#abspos-items">4.1 Absolutely-Positioned Flex Children</a></th></tr>
|
||||
<!-- 4 tests -->
|
||||
<tr id="flexbox-abspos-child-001a-4.1" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-abspos-child-001a.xht">flexbox-abspos-child-001a</a></strong></td>
|
||||
<td><a href="reference/flexbox-abspos-child-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing that "min-width", "max-width", "min-height", and "max-height" are applied on absolutely positioned children of a horizontal flex container
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-abspos-child-001b-4.1" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-abspos-child-001b.xht">flexbox-abspos-child-001b</a></strong></td>
|
||||
<td><a href="reference/flexbox-abspos-child-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing that "min-width", "max-width", "min-height", and "max-height" are applied on absolutely positioned children of a vertical flex container
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_absolute-atomic-4.1" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_absolute-atomic.xht">flexbox_absolute-atomic</a></strong></td>
|
||||
<td><a href="reference/flexbox_absolute-atomic-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | abspos atomic flexitems
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_inline-abspos-4.1" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_inline-abspos.xht">flexbox_inline-abspos</a></strong></td>
|
||||
<td><a href="reference/flexbox_empty-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | absolutely positioned inline
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody id="s4.1.#static-position-rectangle">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s4.2">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s4.2">+</a>
|
||||
<a href="http://www.w3.org/TR/css-flexbox-1/#item-margins">4.2 Flex Item Margins and Paddings</a></th></tr>
|
||||
<!-- 3 tests -->
|
||||
<tr id="flex-container-margin-4.2" class="primary">
|
||||
<td><strong>
|
||||
<a href="flex-container-margin.xht">flex-container-margin</a></strong></td>
|
||||
<td><a href="reference/flex-container-margin-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flex-container-margin-not-collapse-with-content-margin
|
||||
<ul class="assert">
|
||||
<li>The margins of adjacent flex items do not collapse.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flex-margin-no-collapse-4.2" class="">
|
||||
<td>
|
||||
<a href="flex-margin-no-collapse.xht">flex-margin-no-collapse</a></td>
|
||||
<td><a href="reference/flex-margin-no-collapse-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flex item margins
|
||||
<ul class="assert">
|
||||
<li>The vertical gap between two green boxs should be 100px.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_margin-left-ex-4.2" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_margin-left-ex.xht">flexbox_margin-left-ex</a></strong></td>
|
||||
<td><a href="reference/flexbox_margin-left-ex-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | margin-left: auto
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody id="s4.3">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s4.3">+</a>
|
||||
<a href="http://www.w3.org/TR/css-flexbox-1/#painting">4.3 Flex Item Z-Ordering</a></th></tr>
|
||||
<!-- 5 tests -->
|
||||
<tr id="flexbox-items-as-stacking-contexts-001-4.3" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-items-as-stacking-contexts-001.xht">flexbox-items-as-stacking-contexts-001</a></strong></td>
|
||||
<td><a href="reference/flexbox-items-as-stacking-contexts-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing that 'z-index' property makes flex items form stacking contexts
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-items-as-stacking-contexts-002-4.3" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-items-as-stacking-contexts-002.xht">flexbox-items-as-stacking-contexts-002</a></strong></td>
|
||||
<td><a href="reference/flexbox-items-as-stacking-contexts-002-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing that flex items paint as pseudo-stacking contexts (like inline-blocks): atomically, in the absence of 'z-index' on descendants
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-items-as-stacking-contexts-003-4.3" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-items-as-stacking-contexts-003.xht">flexbox-items-as-stacking-contexts-003</a></strong></td>
|
||||
<td><a href="reference/flexbox-items-as-stacking-contexts-003-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing that flex items paint as pseudo-stacking contexts (like inline-blocks), instead of full stacking contexts: 'z-index' should let descendants interleave
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-paint-ordering-001-4.3" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-paint-ordering-001.xht">flexbox-paint-ordering-001</a></strong></td>
|
||||
<td><a href="reference/flexbox-paint-ordering-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing the paint-order of overlapping flex items, with varying tweaks on the container
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-paint-ordering-002-4.3" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-paint-ordering-002.xht">flexbox-paint-ordering-002</a></strong></td>
|
||||
<td><a href="reference/flexbox-paint-ordering-002-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing the paint-order of overlapping flex items with 'order' and 'z-index' set
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody id="s4.4">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s4.4">+</a>
|
||||
<a href="http://www.w3.org/TR/css-flexbox-1/#visibility-collapse">4.4 Collapsed Items</a></th></tr>
|
||||
<!-- 6 tests -->
|
||||
<tr id="flexbox_margin-collapse-4.4" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_margin-collapse.xht">flexbox_margin-collapse</a></strong></td>
|
||||
<td><a href="reference/flexbox_margin-collapse-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | flexitem margin collapsing
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_visibility-collapse-4.4" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_visibility-collapse.xht">flexbox_visibility-collapse</a></strong></td>
|
||||
<td><a href="reference/flexbox_visibility-collapse-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | visibility: collapse
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_visibility-collapse-line-wrapping-4.4" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_visibility-collapse-line-wrapping.xht">flexbox_visibility-collapse-line-wrapping</a></strong></td>
|
||||
<td><a href="reference/flexbox_visibility-collapse-line-wrapping-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | visibility: collapse and line wrapping
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="visibility-collapse-001-4.4" class="primary">
|
||||
<td><strong>
|
||||
<a href="visibility-collapse-001.xht">visibility-collapse-001</a></strong></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>A flex item with the 'visibility' property set to 'collapse' should not take up space in the main axis
|
||||
<ul class="assert">
|
||||
<li>This test checks that a flex item with 'visibility: collapse' doesn't take up space in the main axis.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="visibility-collapse-002-4.4" class="primary">
|
||||
<td><strong>
|
||||
<a href="visibility-collapse-002.xht">visibility-collapse-002</a></strong></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>A flex item with the 'visibility' property set to 'collapse' should be large enough to fit the collapsed item
|
||||
<ul class="assert">
|
||||
<li>This test checks that the cross size of a line of flex items containing an item with 'visbility: collapse' is large enough to fit the collapsed item.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="visibility-regions-in-flexbox-4.4" class="ahem">
|
||||
<td>
|
||||
<a href="visibility-regions-in-flexbox.xht">visibility-regions-in-flexbox</a></td>
|
||||
<td><a href="reference/visibility-regions-in-flexbox-ref.xht">=</a> </td>
|
||||
<td><abbr class="ahem" title="Requires Ahem font">Ahem</abbr></td>
|
||||
<td>CSS Regions: collapsed region flex items
|
||||
<ul class="assert">
|
||||
<li>Test checks that the flexbox collapsed property works on flex items that are regions. The collapsed region item should not contribute to the flex container's width.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody id="s4.4.#collapsed-flex-item">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s4.4.#nav-about">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s4.4.#nav-interact">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s4.4.#nav-projects">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s4.4.#visibility-collapse-example">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s4.5">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s4.5">+</a>
|
||||
<a href="http://www.w3.org/TR/css-flexbox-1/#min-size-auto">4.5 Implied Minimum Size of Flex Items</a></th></tr>
|
||||
<!-- 16 tests -->
|
||||
<tr id="flexbox-min-height-auto-001-4.5" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-min-height-auto-001.xht">flexbox-min-height-auto-001</a></strong></td>
|
||||
<td><a href="reference/flexbox-min-height-auto-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing min-height:auto
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-min-height-auto-002a-4.5" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-min-height-auto-002a.xht">flexbox-min-height-auto-002a</a></strong></td>
|
||||
<td><a href="reference/flexbox-min-height-auto-002-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing min-height:auto
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-min-height-auto-002b-4.5" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-min-height-auto-002b.xht">flexbox-min-height-auto-002b</a></strong></td>
|
||||
<td><a href="reference/flexbox-min-height-auto-002-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing min-height:auto
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-min-height-auto-002c-4.5" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-min-height-auto-002c.xht">flexbox-min-height-auto-002c</a></strong></td>
|
||||
<td><a href="reference/flexbox-min-height-auto-002-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing min-height:auto
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-min-height-auto-003-4.5" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-min-height-auto-003.xht">flexbox-min-height-auto-003</a></strong></td>
|
||||
<td><a href="reference/flexbox-min-height-auto-003-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing min-height:auto & 'overflow' interaction
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-min-height-auto-004-4.5" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-min-height-auto-004.xht">flexbox-min-height-auto-004</a></strong></td>
|
||||
<td><a href="reference/flexbox-min-height-auto-004-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing min-height:auto & 'overflow' interaction
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-min-width-auto-001-4.5" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-min-width-auto-001.xht">flexbox-min-width-auto-001</a></strong></td>
|
||||
<td><a href="reference/flexbox-min-width-auto-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing min-width:auto
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-min-width-auto-002a-4.5" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-min-width-auto-002a.xht">flexbox-min-width-auto-002a</a></strong></td>
|
||||
<td><a href="reference/flexbox-min-width-auto-002-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing min-width:auto
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-min-width-auto-002b-4.5" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-min-width-auto-002b.xht">flexbox-min-width-auto-002b</a></strong></td>
|
||||
<td><a href="reference/flexbox-min-width-auto-002-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing min-width:auto
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-min-width-auto-002c-4.5" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-min-width-auto-002c.xht">flexbox-min-width-auto-002c</a></strong></td>
|
||||
<td><a href="reference/flexbox-min-width-auto-002-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing min-width:auto
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-min-width-auto-003-4.5" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-min-width-auto-003.xht">flexbox-min-width-auto-003</a></strong></td>
|
||||
<td><a href="reference/flexbox-min-width-auto-003-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing min-width:auto & 'overflow' interaction
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-min-width-auto-004-4.5" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-min-width-auto-004.xht">flexbox-min-width-auto-004</a></strong></td>
|
||||
<td><a href="reference/flexbox-min-width-auto-004-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing min-width:auto & 'overflow' interaction
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_computedstyle_min-height-auto-4.5" class="primary dom">
|
||||
<td><strong>
|
||||
<a href="flexbox_computedstyle_min-height-auto.xht">flexbox_computedstyle_min-height-auto</a></strong></td>
|
||||
<td></td>
|
||||
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr></td>
|
||||
<td>flexbox | computed style | min-height: auto
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_computedstyle_min-width-auto-4.5" class="primary dom">
|
||||
<td><strong>
|
||||
<a href="flexbox_computedstyle_min-width-auto.xht">flexbox_computedstyle_min-width-auto</a></strong></td>
|
||||
<td></td>
|
||||
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr></td>
|
||||
<td>flexbox | computed style | min-width: auto
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_min-height-auto-4.5" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_min-height-auto.xht">flexbox_min-height-auto</a></strong></td>
|
||||
<td><a href="reference/flexbox_min-height-auto-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | min-height: auto
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox_min-width-auto-4.5" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox_min-width-auto.xht">flexbox_min-width-auto</a></strong></td>
|
||||
<td><a href="reference/flexbox_min-width-auto-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flexbox | min-width: auto
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody id="s4.5.#min-size-opt">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s4.5.#valdef-min-width-min-height-auto">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
1494
tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/chapter-5.xht
Normal file
1494
tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/chapter-5.xht
Normal file
File diff suppressed because it is too large
Load diff
61
tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/chapter-6.xht
Normal file
61
tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/chapter-6.xht
Normal file
|
@ -0,0 +1,61 @@
|
|||
|
||||
|
||||
<!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>Flex Lines - CSS Flexible Box Layout Module Level 1 CR Test Suite</title>
|
||||
<style type="text/css">
|
||||
@import "http://www.w3.org/StyleSheets/TR/base.css";
|
||||
@import "../indices.css";
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>CSS Flexible Box Layout Module Level 1 CR Test Suite</h1>
|
||||
<h2>Flex Lines (1 tests)</h2>
|
||||
<table width="100%">
|
||||
<col id="test-column"></col>
|
||||
<col id="refs-column"></col>
|
||||
<col id="flags-column"></col>
|
||||
<col id="info-column"></col>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Test</th>
|
||||
<th><abbr title="Rendering References">Refs</abbr></th>
|
||||
<th>Flags</th>
|
||||
<th>Info</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="s6">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s6">+</a>
|
||||
<a href="http://www.w3.org/TR/css-flexbox-1/#flex-lines">6 Flex Lines</a></th></tr>
|
||||
<!-- 1 tests -->
|
||||
<tr id="flexbox-flex-wrap-flexing-6" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-flex-wrap-flexing.xht">flexbox-flex-wrap-flexing</a></strong></td>
|
||||
<td><a href="reference/flexbox-flex-wrap-flexing-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>flex-wrap flexes widths after line breaking
|
||||
<ul class="assert">
|
||||
<li>Flex items given more space after line breaking should flex wider</li>
|
||||
<li>http://www.w3.org/TR/css-flexbox-1/#propdef-flex-wrap</li>
|
||||
<li>http://www.w3.org/TR/css-flexbox-1/#flex-property</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody id="s6.#flex-line">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s6.#multi-line">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s6.#single-line">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
1470
tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/chapter-7.xht
Normal file
1470
tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/chapter-7.xht
Normal file
File diff suppressed because it is too large
Load diff
1788
tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/chapter-8.xht
Normal file
1788
tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/chapter-8.xht
Normal file
File diff suppressed because it is too large
Load diff
708
tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/chapter-9.xht
Normal file
708
tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/chapter-9.xht
Normal file
|
@ -0,0 +1,708 @@
|
|||
|
||||
|
||||
<!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>Flex Layout Algorithm - CSS Flexible Box Layout Module Level 1 CR Test Suite</title>
|
||||
<style type="text/css">
|
||||
@import "http://www.w3.org/StyleSheets/TR/base.css";
|
||||
@import "../indices.css";
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>CSS Flexible Box Layout Module Level 1 CR Test Suite</h1>
|
||||
<h2>Flex Layout Algorithm (58 tests)</h2>
|
||||
<table width="100%">
|
||||
<col id="test-column"></col>
|
||||
<col id="refs-column"></col>
|
||||
<col id="flags-column"></col>
|
||||
<col id="info-column"></col>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Test</th>
|
||||
<th><abbr title="Rendering References">Refs</abbr></th>
|
||||
<th>Flags</th>
|
||||
<th>Info</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="s9">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s9">+</a>
|
||||
<a href="http://www.w3.org/TR/css-flexbox-1/#layout-algorithm">9 Flex Layout Algorithm</a></th></tr>
|
||||
<!-- 46 tests -->
|
||||
<tr id="autoheight-flexbox-001-9" class="">
|
||||
<td>
|
||||
<a href="autoheight-flexbox-001.xht">autoheight-flexbox-001</a></td>
|
||||
<td><a href="reference/autoheight-flexbox-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>CSS Regions: fixed height flexbox inside auto height region
|
||||
<ul class="assert">
|
||||
<li>Test that flowing a flex container inside a region with auto-height will enlarge the region to fit the content.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="autoheight-flexbox-002-9" class="ahem">
|
||||
<td>
|
||||
<a href="autoheight-flexbox-002.xht">autoheight-flexbox-002</a></td>
|
||||
<td><a href="reference/regions-flexbox-002-ref.xht">=</a> </td>
|
||||
<td><abbr class="ahem" title="Requires Ahem font">Ahem</abbr></td>
|
||||
<td>CSS Regions: flowing auto-height flexbox elements in region
|
||||
<ul class="assert">
|
||||
<li>Test that a flex container with auto height is flowed correctly inside a region with auto height. The region should fit the flexbox.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="autoheight-flexbox-003-9" class="ahem">
|
||||
<td>
|
||||
<a href="autoheight-flexbox-003.xht">autoheight-flexbox-003</a></td>
|
||||
<td><a href="reference/autoheight-flexbox-003-ref.xht">=</a> </td>
|
||||
<td><abbr class="ahem" title="Requires Ahem font">Ahem</abbr></td>
|
||||
<td>CSS Regions: auto height region inside a fixed sized flexbox
|
||||
<ul class="assert">
|
||||
<li>Test that an auto-height region inside a flexbox is stretched to match the flexbox container's cross size.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="autoheight-flexbox-004-9" class="ahem">
|
||||
<td>
|
||||
<a href="autoheight-flexbox-004.xht">autoheight-flexbox-004</a></td>
|
||||
<td><a href="reference/autoheight-flexbox-003-ref.xht">=</a> </td>
|
||||
<td><abbr class="ahem" title="Requires Ahem font">Ahem</abbr></td>
|
||||
<td>CSS Regions: auto height region inside an auto height flexbox
|
||||
<ul class="assert">
|
||||
<li>Test that an auto height region inside a flex container with auto height is displayed properly. The flexbox should have the same height as the region.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="autoheight-regions-in-autoheight-flexbox-001-9" class="ahem">
|
||||
<td>
|
||||
<a href="autoheight-regions-in-autoheight-flexbox-001.xht">autoheight-regions-in-autoheight-flexbox-001</a></td>
|
||||
<td><a href="reference/autoheight-regions-in-autoheight-flexbox-001-ref.xht">=</a> </td>
|
||||
<td><abbr class="ahem" title="Requires Ahem font">Ahem</abbr></td>
|
||||
<td>CSS Regions: Auto-height regions in auto-height flex container
|
||||
<ul class="assert">
|
||||
<li>Test that auto-height regions placed in a flex container with auto-height and row wrap reverse flow are sized correctly. The content from the second flow should flow through the region on the second row and into the region from the first row, making the left blue rectangle taller than the green rectangle on the right.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="autoheight-regions-in-autoheight-flexbox-002-9" class="ahem">
|
||||
<td>
|
||||
<a href="autoheight-regions-in-autoheight-flexbox-002.xht">autoheight-regions-in-autoheight-flexbox-002</a></td>
|
||||
<td><a href="reference/autoheight-regions-in-autoheight-flexbox-002-ref.xht">=</a> </td>
|
||||
<td><abbr class="ahem" title="Requires Ahem font">Ahem</abbr></td>
|
||||
<td>CSS Regions: Auto-height regions with vertical writing mode in auto-height flexbox
|
||||
<ul class="assert">
|
||||
<li>Test checks that auto-height regions having content with vertical writing mode are sized correctly when placed inside a flex container. The flowed content should be displayed as a horizontal green stripe.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="autoheight-regions-in-autoheight-flexbox-003-9" class="ahem">
|
||||
<td>
|
||||
<a href="autoheight-regions-in-autoheight-flexbox-003.xht">autoheight-regions-in-autoheight-flexbox-003</a></td>
|
||||
<td><a href="reference/autoheight-regions-in-autoheight-flexbox-003-ref.xht">=</a> </td>
|
||||
<td><abbr class="ahem" title="Requires Ahem font">Ahem</abbr></td>
|
||||
<td>CSS Regions: auto-height regions in auto-height flexbox with flex basis
|
||||
<ul class="assert">
|
||||
<li>Test checks that the computed height of auto-height regions placed in a flex container takes into the account the flex basis property. The space available inside the flex container should be distributed according to the flex basis property. In this particular case, each of the three regions must have a height equal to one third of the flex container's height.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="autoheight-regions-in-autoheight-flexbox-004-9" class="ahem">
|
||||
<td>
|
||||
<a href="autoheight-regions-in-autoheight-flexbox-004.xht">autoheight-regions-in-autoheight-flexbox-004</a></td>
|
||||
<td><a href="reference/autoheight-regions-in-autoheight-flexbox-004-ref.xht">=</a> </td>
|
||||
<td><abbr class="ahem" title="Requires Ahem font">Ahem</abbr></td>
|
||||
<td>CSS Regions: nested regions in flexbox
|
||||
<ul class="assert">
|
||||
<li>Test checks that nested regions placed in flex containers are laid out properly. The first flow (blue content) is nested inside the second flow (green content). The user should see three horizontal stripes with the following colors: green, blue, green.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="autoheight-regions-in-fixed-sized-flexbox-001-9" class="ahem">
|
||||
<td>
|
||||
<a href="autoheight-regions-in-fixed-sized-flexbox-001.xht">autoheight-regions-in-fixed-sized-flexbox-001</a></td>
|
||||
<td><a href="reference/autoheight-regions-in-fixed-sized-flexbox-001-ref.xht">=</a> </td>
|
||||
<td><abbr class="ahem" title="Requires Ahem font">Ahem</abbr></td>
|
||||
<td>CSS Regions: Auto-height regions inside fixed sized flexbox
|
||||
<ul class="assert">
|
||||
<li>Test checks that auto-height regions respect the flex grow property when placed inside a fixed sized flexbox with a single row.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="autoheight-regions-in-fixed-sized-flexbox-002-9" class="ahem">
|
||||
<td>
|
||||
<a href="autoheight-regions-in-fixed-sized-flexbox-002.xht">autoheight-regions-in-fixed-sized-flexbox-002</a></td>
|
||||
<td><a href="reference/autoheight-regions-in-fixed-sized-flexbox-002-ref.xht">=</a> </td>
|
||||
<td><abbr class="ahem" title="Requires Ahem font">Ahem</abbr></td>
|
||||
<td>CSS Regions: Auto-height regions inside fixed sized flexbox with column flow
|
||||
<ul class="assert">
|
||||
<li>Test checks that auto-height regions placed inside a fixed sized flexbox with column flow have the correct computed height. There are two regions placed inside the same flex container having the same 'grow' value. The space should be distributed evenly between the two.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="autoheight-regions-in-fixed-sized-flexbox-003-9" class="ahem">
|
||||
<td>
|
||||
<a href="autoheight-regions-in-fixed-sized-flexbox-003.xht">autoheight-regions-in-fixed-sized-flexbox-003</a></td>
|
||||
<td><a href="reference/autoheight-regions-in-fixed-sized-flexbox-003-ref.xht">=</a> </td>
|
||||
<td><abbr class="ahem" title="Requires Ahem font">Ahem</abbr></td>
|
||||
<td>CSS Regions: Auto-height regions inside a fixed sized flexbox with column wrap flow
|
||||
<ul class="assert">
|
||||
<li>Test checks the layout of auto-height regions placed inside a flexbox with a fixed size and column wrap flow. The flex container should have two columns with three regions each.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="autoheight-regions-in-fixed-sized-flexbox-004-9" class="ahem">
|
||||
<td>
|
||||
<a href="autoheight-regions-in-fixed-sized-flexbox-004.xht">autoheight-regions-in-fixed-sized-flexbox-004</a></td>
|
||||
<td><a href="reference/autoheight-regions-in-fixed-sized-flexbox-004-ref.xht">=</a> </td>
|
||||
<td><abbr class="ahem" title="Requires Ahem font">Ahem</abbr></td>
|
||||
<td>CSS Regions: Auto-height region in fixed sized flexbox using flex basis
|
||||
<ul class="assert">
|
||||
<li>Test checks the layout of regions placed inside a fixed sized flexbox using flex basis and column flow. The flex container should force the first region to break by constraining its height.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="autoheight-regions-in-fixed-sized-flexbox-005-9" class="">
|
||||
<td>
|
||||
<a href="autoheight-regions-in-fixed-sized-flexbox-005.xht">autoheight-regions-in-fixed-sized-flexbox-005</a></td>
|
||||
<td><a href="reference/autoheight-regions-in-fixed-sized-flexbox-005-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>CSS Regions: Auto-height regions in fixed sized flexboxes with align-items and justify-content
|
||||
<ul class="assert">
|
||||
<li>Test checks auto-height regions' layout when placed inside a flexbox with using align-items and justify-content properties. The flowed content should be fragmented between the three regions and the flex container should distribute the remaining horizontal space evenly around the regions.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="autoheight-regions-in-fixed-sized-flexbox-006-9" class="">
|
||||
<td>
|
||||
<a href="autoheight-regions-in-fixed-sized-flexbox-006.xht">autoheight-regions-in-fixed-sized-flexbox-006</a></td>
|
||||
<td><a href="reference/autoheight-regions-in-fixed-sized-flexbox-006-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>CSS Regions: auto-height regions inside a flex container with fixed size
|
||||
<ul class="assert">
|
||||
<li>Test that the flex container stretches a region flex item with a height smaller than the flex container's inner cross size.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="autoheight-regions-in-fixed-sized-flexbox-007-9" class="ahem">
|
||||
<td>
|
||||
<a href="autoheight-regions-in-fixed-sized-flexbox-007.xht">autoheight-regions-in-fixed-sized-flexbox-007</a></td>
|
||||
<td><a href="reference/autoheight-regions-in-fixed-sized-flexbox-007-ref.xht">=</a> </td>
|
||||
<td><abbr class="ahem" title="Requires Ahem font">Ahem</abbr></td>
|
||||
<td>CSS Regions: auto-height regions inside fixed sized flexbox
|
||||
<ul class="assert">
|
||||
<li>Test that using the flex-basis property sizes the flex items to a percentage of the flex container's height when said items are auto-height regions. The last region, the outside the flex container should not be visible.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="autoheight-regions-in-fixed-sized-flexbox-008-9" class="ahem">
|
||||
<td>
|
||||
<a href="autoheight-regions-in-fixed-sized-flexbox-008.xht">autoheight-regions-in-fixed-sized-flexbox-008</a></td>
|
||||
<td><a href="reference/autoheight-regions-in-fixed-sized-flexbox-008-ref.xht">=</a> </td>
|
||||
<td><abbr class="ahem" title="Requires Ahem font">Ahem</abbr></td>
|
||||
<td>CSS Regions: auto-height regions with max height in fixed sized flexbox
|
||||
<ul class="assert">
|
||||
<li>Test that the max-height property is applied to regions placed inside a fixed sized flexbox with a column flow. The flex container should not flex the region flex items beyond their max height value.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-align-self-stretch-vert-001-9" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-align-self-stretch-vert-001.xht">flexbox-align-self-stretch-vert-001</a></strong></td>
|
||||
<td><a href="reference/flexbox-align-self-stretch-vert-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing the sizing of a stretched horizontal flex container in a vertical flex container
|
||||
<ul class="assert">
|
||||
<li>If a stretched flex item's main size is influenced by its cross size, and the flex container has a definite cross size, then the item's cross size should be resolved early so that it can be used when determining the item's main size</li>
|
||||
<li>http://dev.w3.org/csswg/css-flexbox/issues-cr-2012#issue-23</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-align-self-stretch-vert-002-9" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-align-self-stretch-vert-002.xht">flexbox-align-self-stretch-vert-002</a></strong></td>
|
||||
<td><a href="reference/flexbox-align-self-stretch-vert-002-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing the sizing of stretched flex items in a vertical multi-line flex container
|
||||
<ul class="assert">
|
||||
<li>In a multi-line flex container, flex items should not be stretched (in the cross axis) until after wrapping has been performed.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-basic-block-horiz-001-9" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-basic-block-horiz-001.xht">flexbox-basic-block-horiz-001</a></strong></td>
|
||||
<td><a href="reference/flexbox-basic-block-horiz-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing flexbox layout algorithm property on block flex items in a horizontal flex container
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-basic-block-vert-001-9" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-basic-block-vert-001.xht">flexbox-basic-block-vert-001</a></strong></td>
|
||||
<td><a href="reference/flexbox-basic-block-vert-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing flexbox layout algorithm property on block flex items in a vertical flex container
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-basic-canvas-horiz-001-9" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-basic-canvas-horiz-001.xht">flexbox-basic-canvas-horiz-001</a></strong></td>
|
||||
<td><a href="reference/flexbox-basic-canvas-horiz-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing flexbox layout algorithm property on canvas flex items in a horizontal flex container
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-basic-canvas-vert-001-9" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-basic-canvas-vert-001.xht">flexbox-basic-canvas-vert-001</a></strong></td>
|
||||
<td><a href="reference/flexbox-basic-canvas-vert-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing flexbox layout algorithm property on canvas flex items in a vertical flex container
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-basic-fieldset-horiz-001-9" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-basic-fieldset-horiz-001.xht">flexbox-basic-fieldset-horiz-001</a></strong></td>
|
||||
<td><a href="reference/flexbox-basic-fieldset-horiz-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing flexbox layout algorithm property on fieldset flex items in a horizontal flex container
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-basic-fieldset-vert-001-9" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-basic-fieldset-vert-001.xht">flexbox-basic-fieldset-vert-001</a></strong></td>
|
||||
<td><a href="reference/flexbox-basic-fieldset-vert-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing flexbox layout algorithm property on fieldset flex items in a vertical flex container
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-basic-iframe-horiz-001-9" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-basic-iframe-horiz-001.xht">flexbox-basic-iframe-horiz-001</a></strong></td>
|
||||
<td><a href="reference/flexbox-basic-iframe-horiz-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing flexbox layout algorithm property on iframe flex items in a horizontal flex container
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-basic-iframe-vert-001-9" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-basic-iframe-vert-001.xht">flexbox-basic-iframe-vert-001</a></strong></td>
|
||||
<td><a href="reference/flexbox-basic-iframe-vert-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing flexbox layout algorithm property on iframe flex items in a vertical flex container
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-basic-img-horiz-001-9" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-basic-img-horiz-001.xht">flexbox-basic-img-horiz-001</a></strong></td>
|
||||
<td><a href="reference/flexbox-basic-img-horiz-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing flexbox layout algorithm property on img flex items in a horizontal flex container
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-basic-img-vert-001-9" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-basic-img-vert-001.xht">flexbox-basic-img-vert-001</a></strong></td>
|
||||
<td><a href="reference/flexbox-basic-img-vert-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing flexbox layout algorithm property on img flex items in a vertical flex container
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-basic-textarea-horiz-001-9" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-basic-textarea-horiz-001.xht">flexbox-basic-textarea-horiz-001</a></strong></td>
|
||||
<td><a href="reference/flexbox-basic-textarea-horiz-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing flexbox layout algorithm property on textarea flex items in a horizontal flex container
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-basic-textarea-vert-001-9" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-basic-textarea-vert-001.xht">flexbox-basic-textarea-vert-001</a></strong></td>
|
||||
<td><a href="reference/flexbox-basic-textarea-vert-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing flexbox layout algorithm property on textarea flex items in a vertical flex container
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-basic-video-horiz-001-9" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-basic-video-horiz-001.xht">flexbox-basic-video-horiz-001</a></strong></td>
|
||||
<td><a href="reference/flexbox-basic-video-horiz-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing flexbox layout algorithm property on video flex items in a horizontal flex container
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-basic-video-vert-001-9" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-basic-video-vert-001.xht">flexbox-basic-video-vert-001</a></strong></td>
|
||||
<td><a href="reference/flexbox-basic-video-vert-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing flexbox layout algorithm property on video flex items in a vertical flex container
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-mbp-horiz-001-9" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-mbp-horiz-001.xht">flexbox-mbp-horiz-001</a></strong></td>
|
||||
<td><a href="reference/flexbox-mbp-horiz-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing borders on flex items in a horizontal flex container
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-mbp-horiz-001-reverse-9" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-mbp-horiz-001-reverse.xht">flexbox-mbp-horiz-001-reverse</a></strong></td>
|
||||
<td><a href="reference/flexbox-mbp-horiz-001-reverse-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing borders on flex items in a row-reverse horizontal flex container
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-mbp-horiz-001-rtl-9" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-mbp-horiz-001-rtl.xht">flexbox-mbp-horiz-001-rtl</a></strong></td>
|
||||
<td><a href="reference/flexbox-mbp-horiz-001-reverse-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing borders on flex items in a horizontal flex container with 'direction: rtl'
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-mbp-horiz-001-rtl-reverse-9" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-mbp-horiz-001-rtl-reverse.xht">flexbox-mbp-horiz-001-rtl-reverse</a></strong></td>
|
||||
<td><a href="reference/flexbox-mbp-horiz-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing borders on flex items in a row-reverse horizontal flex container, with 'direction: rtl'
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-mbp-horiz-002a-9" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-mbp-horiz-002a.xht">flexbox-mbp-horiz-002a</a></strong></td>
|
||||
<td><a href="reference/flexbox-mbp-horiz-002-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing margins and borders on flex items in a horizontal flex container
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-mbp-horiz-002b-9" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-mbp-horiz-002b.xht">flexbox-mbp-horiz-002b</a></strong></td>
|
||||
<td><a href="reference/flexbox-mbp-horiz-002-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing margins, borders, and padding on flex items in a horizontal flex container
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-mbp-horiz-003-9" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-mbp-horiz-003.xht">flexbox-mbp-horiz-003</a></strong></td>
|
||||
<td><a href="reference/flexbox-mbp-horiz-003-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing borders and padding on a horizontal flex container and its flex items
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-mbp-horiz-003-reverse-9" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-mbp-horiz-003-reverse.xht">flexbox-mbp-horiz-003-reverse</a></strong></td>
|
||||
<td><a href="reference/flexbox-mbp-horiz-003-reverse-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing borders and padding on a row-reverse horizontal flex container and its flex items
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-mbp-horiz-004-9" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-mbp-horiz-004.xht">flexbox-mbp-horiz-004</a></strong></td>
|
||||
<td><a href="reference/flexbox-mbp-horiz-004-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing percent-valued padding and margin on flex items
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-sizing-horiz-001-9" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-sizing-horiz-001.xht">flexbox-sizing-horiz-001</a></strong></td>
|
||||
<td><a href="reference/flexbox-sizing-horiz-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing sizing of an auto-sized horizontal flex container with min-width and max-width constraints
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-sizing-horiz-002-9" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-sizing-horiz-002.xht">flexbox-sizing-horiz-002</a></strong></td>
|
||||
<td><a href="reference/flexbox-sizing-horiz-002-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing sizing of an auto-sized horizontal flex container with min-height and max-height constraints
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-sizing-vert-001-9" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-sizing-vert-001.xht">flexbox-sizing-vert-001</a></strong></td>
|
||||
<td><a href="reference/flexbox-sizing-vert-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing sizing of an auto-sized vertical flex container with min-height and max-height constraints
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-sizing-vert-002-9" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-sizing-vert-002.xht">flexbox-sizing-vert-002</a></strong></td>
|
||||
<td><a href="reference/flexbox-sizing-vert-002-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing sizing of an auto-sized vertical flex container with min-width and max-width constraints
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="row-flexbox-break-9" class="ahem">
|
||||
<td>
|
||||
<a href="row-flexbox-break.xht">row-flexbox-break</a></td>
|
||||
<td><a href="reference/row-flexbox-break-ref.xht">=</a> </td>
|
||||
<td><abbr class="ahem" title="Requires Ahem font">Ahem</abbr></td>
|
||||
<td>CSS Regions: row flex container fragmentation
|
||||
<ul class="assert">
|
||||
<li>Test checks that a flex container with row flow is split between regions.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody id="s9.1">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s9.1">+</a>
|
||||
<a href="http://www.w3.org/TR/css-flexbox-1/#box-manip">9.1 Initial Setup</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.1.#algo-anon-box">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.1.#algo-flex-order">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.2">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s9.2">+</a>
|
||||
<a href="http://www.w3.org/TR/css-flexbox-1/#line-sizing">9.2 Line Length Determination</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.2.#algo-available">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.2.#algo-main-container">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.2.#algo-main-item">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.2.#flex-base-size">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.2.#hypothetical-main-size">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.3">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s9.3">+</a>
|
||||
<a href="http://www.w3.org/TR/css-flexbox-1/#main-sizing">9.3 Main Size Determination</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.3.#algo-flex">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.3.#algo-line-break">
|
||||
<!-- 8 tests -->
|
||||
<tr id="flexbox-break-request-horiz-001a-9.3.#algo-line-break" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-break-request-horiz-001a.xht">flexbox-break-request-horiz-001a</a></strong></td>
|
||||
<td><a href="reference/flexbox-break-request-horiz-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing page-break-before in horizontal multi-line flex containers
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-break-request-horiz-001b-9.3.#algo-line-break" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-break-request-horiz-001b.xht">flexbox-break-request-horiz-001b</a></strong></td>
|
||||
<td><a href="reference/flexbox-break-request-horiz-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing page-break-after in horizontal multi-line flex containers
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-break-request-horiz-002a-9.3.#algo-line-break" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-break-request-horiz-002a.xht">flexbox-break-request-horiz-002a</a></strong></td>
|
||||
<td><a href="reference/flexbox-break-request-horiz-002-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing page-break-before in horizontal single-line flex containers (should have no effect)
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-break-request-horiz-002b-9.3.#algo-line-break" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-break-request-horiz-002b.xht">flexbox-break-request-horiz-002b</a></strong></td>
|
||||
<td><a href="reference/flexbox-break-request-horiz-002-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing page-break-after in horizontal single-line flex containers (should have no effect)
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-break-request-vert-001a-9.3.#algo-line-break" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-break-request-vert-001a.xht">flexbox-break-request-vert-001a</a></strong></td>
|
||||
<td><a href="reference/flexbox-break-request-vert-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing page-break-before in vertical multi-line flex containers
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-break-request-vert-001b-9.3.#algo-line-break" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-break-request-vert-001b.xht">flexbox-break-request-vert-001b</a></strong></td>
|
||||
<td><a href="reference/flexbox-break-request-vert-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing page-break-after in vertical multi-line flex containers
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-break-request-vert-002a-9.3.#algo-line-break" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-break-request-vert-002a.xht">flexbox-break-request-vert-002a</a></strong></td>
|
||||
<td><a href="reference/flexbox-break-request-vert-002-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing page-break-before in vertical single-line flex containers (should have no effect)
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-break-request-vert-002b-9.3.#algo-line-break" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-break-request-vert-002b.xht">flexbox-break-request-vert-002b</a></strong></td>
|
||||
<td><a href="reference/flexbox-break-request-vert-002-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing page-break-after in vertical single-line flex containers (should have no effect)
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody id="s9.4">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s9.4">+</a>
|
||||
<a href="http://www.w3.org/TR/css-flexbox-1/#cross-sizing">9.4 Cross Size Determination</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.4.#algo-cross-item">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.4.#algo-cross-line">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.4.#algo-line-stretch">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.4.#algo-stretch">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.4.#algo-visibility">
|
||||
<!-- 4 tests -->
|
||||
<tr id="flexbox-collapsed-item-baseline-001-9.4.#algo-visibility" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-collapsed-item-baseline-001.xht">flexbox-collapsed-item-baseline-001</a></strong></td>
|
||||
<td><a href="reference/flexbox-collapsed-item-baseline-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing that a collapsed flex item participates in baseline alignment only for the purpose of establishing container's cross size
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-collapsed-item-horiz-001-9.4.#algo-visibility" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-collapsed-item-horiz-001.xht">flexbox-collapsed-item-horiz-001</a></strong></td>
|
||||
<td><a href="reference/flexbox-collapsed-item-horiz-001-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing that visibility:collapse on a flex item in a single-line flex container maintains the containers's cross size, but doesn't otherwise impact flex layout
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-collapsed-item-horiz-002-9.4.#algo-visibility" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-collapsed-item-horiz-002.xht">flexbox-collapsed-item-horiz-002</a></strong></td>
|
||||
<td><a href="reference/flexbox-collapsed-item-horiz-002-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing that visibility:collapse on a flex item in a multi-line flex container creates struts, and that they can migrate between lines
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="flexbox-collapsed-item-horiz-003-9.4.#algo-visibility" class="primary">
|
||||
<td><strong>
|
||||
<a href="flexbox-collapsed-item-horiz-003.xht">flexbox-collapsed-item-horiz-003</a></strong></td>
|
||||
<td><a href="reference/flexbox-collapsed-item-horiz-003-ref.xht">=</a> </td>
|
||||
<td></td>
|
||||
<td>Testing that strut formation (from visibility:collapse) happens *after* lines have been stretched
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody id="s9.4.#hypothetical-cross-size">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.4.#strut-size">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.5">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s9.5">+</a>
|
||||
<a href="http://www.w3.org/TR/css-flexbox-1/#main-alignment">9.5 Main-Axis Alignment</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.5.#algo-main-align">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.6">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s9.6">+</a>
|
||||
<a href="http://www.w3.org/TR/css-flexbox-1/#cross-alignment">9.6 Cross-Axis Alignment</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.6.#algo-cross-align">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.6.#algo-cross-container">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.6.#algo-cross-margins">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.6.#algo-line-align">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.7">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s9.7">+</a>
|
||||
<a href="http://www.w3.org/TR/css-flexbox-1/#resolve-flexible-lengths">9.7 Resolving Flexible Lengths</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.7.#initial-free-space">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.7.#remaining-free-space">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.7.#scaled-flex-shrink-factor">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.7.#target-main-size">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.8">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s9.8">+</a>
|
||||
<a href="http://www.w3.org/TR/css-flexbox-1/#definite-sizes">9.8 Definite and Indefinite Sizes</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.8.#definite">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.8.#indefinite">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.9">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s9.9">+</a>
|
||||
<a href="http://www.w3.org/TR/css-flexbox-1/#intrinsic-sizes">9.9 Intrinsic Sizes</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.9.#max-content-cross-size">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.9.#max-content-main-size">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.9.#min-content-cross-size">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.9.#min-content-main-size">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,50 @@
|
|||
<!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 Regions: fragmenting a flex container with column flow </title>
|
||||
<link href="mailto:badea@adobe.com" rel="author" title="Catalin Badea" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#the-flow-into-property" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css3-regions/#the-flow-from-property" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-containers" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-direction-property" rel="help" />
|
||||
<meta content="ahem" name="flags" />
|
||||
<meta content="Test checks that a flex container with column flow is fragmented between regions." name="assert" />
|
||||
<link href="reference/column-flexbox-break-ref.xht" rel="match" />
|
||||
<style>
|
||||
.flex {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flow-into: flow;
|
||||
}
|
||||
|
||||
.region {
|
||||
flow-from: flow;
|
||||
height: 45px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.item {
|
||||
font-family: Ahem;
|
||||
font-size: 20px;
|
||||
line-height: 1em;
|
||||
color: green;
|
||||
}
|
||||
|
||||
.red {
|
||||
background-color: red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<ul>
|
||||
<li>Test passes if you see two horizontal green stripes.</li>
|
||||
<li>You shouldn't see any red.</li>
|
||||
</ul>
|
||||
<div class="flex">
|
||||
<div class="item">XXXX<br />XXXX</div>
|
||||
<div class="item">XXXX<br />XXXX</div>
|
||||
</div>
|
||||
<div class="region"></div>
|
||||
<div class="region"><p class="red"> </p></div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,30 @@
|
|||
<!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>flexbox |css-box-justufy-content</title>
|
||||
<link href="ava656094@gmail.com" rel="author" title="xiaoxia" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-justify-content" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-flow" rel="help" />
|
||||
<link href="reference/css-box-justify-content-ref.xht" rel="match" />
|
||||
<style>
|
||||
#flexbox {
|
||||
background: green;
|
||||
width: 300px;
|
||||
height: 40px;
|
||||
display: flex;
|
||||
flex-flow: row;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.item{
|
||||
margin-left:2px;
|
||||
width:50px;
|
||||
height: 30px;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head><body><p>This test passes if the DIV5's position in the end and the div is Horizontal layout</p>
|
||||
<div id="flexbox">
|
||||
<div style="background-color: rgb(242, 210, 80); color: rgb(41, 119, 248);" class="item">DIV1</div>
|
||||
<div style="background-color: rgb(110, 8, 7); color: rgb(162, 152, 22);" class="item">DIV2</div>
|
||||
<div style="background-color: rgb(215, 172, 243); color: rgb(74, 123, 110);" class="item">DIV3</div>
|
||||
<div style="background-color: rgb(242, 133, 80); color: rgb(41, 119, 248);" class="item">DIV4</div>
|
||||
<div style="background-color: rgb(242, 50, 80); color: rgb(41, 119, 248);" class="item">DIV5</div>
|
||||
</div></body></html>
|
|
@ -0,0 +1,58 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<!-- coding:utf-8 --><html xmlns="http://www.w3.org/1999/xhtml"><head>
|
||||
<meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: flex direction: row</title>
|
||||
<link href="mailto:somathor@gmail.com" rel="author" title="Naoki Okada" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-flow" rel="help" />
|
||||
<link href="reference/css-flexbox-column-ref.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="Test checks that when writing mode is vertical and flex-flow: column wrap-reverse, the flex container is vertical." name="assert" />
|
||||
<style type="text/css">
|
||||
.container {
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
-webkit-flex-flow: column-reverse wrap-reverse;
|
||||
flex-flow: column-reverse wrap-reverse;
|
||||
-webkit-writing-mode: vertical-rl;
|
||||
writing-mode: vertical-rl;
|
||||
width: 9em;
|
||||
min-height: 4em;
|
||||
color: white;
|
||||
align-content: flex-start;
|
||||
background: green;
|
||||
}
|
||||
.item {
|
||||
background: green;
|
||||
height: 1em;
|
||||
width: 1.5em;
|
||||
|
||||
/* make sure UA that doesn't support writing mode and flexbox fails. */
|
||||
float: right;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The test passes if you see a tall green box with pairs of the digits 1-9 and a-i listed right to left in two columns.</p>
|
||||
<div class="container">
|
||||
<div class="item">i</div>
|
||||
<div class="item">9</div>
|
||||
<div class="item">f</div>
|
||||
<div class="item">6</div>
|
||||
<div class="item">c</div>
|
||||
<div class="item">3</div>
|
||||
<div class="item">h</div>
|
||||
<div class="item">8</div>
|
||||
<div class="item">e</div>
|
||||
<div class="item">5</div>
|
||||
<div class="item">b</div>
|
||||
<div class="item">2</div>
|
||||
<div class="item">g</div>
|
||||
<div class="item">7</div>
|
||||
<div class="item">d</div>
|
||||
<div class="item">4</div>
|
||||
<div class="item">a</div>
|
||||
<div class="item">1</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,58 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<!-- coding:utf-8 --><html xmlns="http://www.w3.org/1999/xhtml"><head>
|
||||
<meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: flex direction: row</title>
|
||||
<link href="mailto:somathor@gmail.com" rel="author" title="Naoki Okada" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-flow" rel="help" />
|
||||
<link href="reference/css-flexbox-column-ref.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="Test checks that when writing mode is vertical and flex-flow: column wrap, the flex container is vertical." name="assert" />
|
||||
<style type="text/css">
|
||||
.container {
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
-webkit-flex-flow: column-reverse wrap;
|
||||
flex-flow: column-reverse wrap;
|
||||
-webkit-writing-mode: vertical-rl;
|
||||
writing-mode: vertical-rl;
|
||||
width: 9em;
|
||||
min-height: 4em;
|
||||
color: white;
|
||||
align-content: flex-start;
|
||||
background: green;
|
||||
}
|
||||
.item {
|
||||
background: green;
|
||||
height: 1em;
|
||||
width: 1.5em;
|
||||
|
||||
/* make sure UA that doesn't support writing mode and flexbox fails. */
|
||||
float: right;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The test passes if you see a tall green box with pairs of the digits 1-9 and a-i listed right to left in two columns.</p>
|
||||
<div class="container">
|
||||
<div class="item">g</div>
|
||||
<div class="item">7</div>
|
||||
<div class="item">d</div>
|
||||
<div class="item">4</div>
|
||||
<div class="item">a</div>
|
||||
<div class="item">1</div>
|
||||
<div class="item">h</div>
|
||||
<div class="item">8</div>
|
||||
<div class="item">e</div>
|
||||
<div class="item">5</div>
|
||||
<div class="item">b</div>
|
||||
<div class="item">2</div>
|
||||
<div class="item">i</div>
|
||||
<div class="item">9</div>
|
||||
<div class="item">f</div>
|
||||
<div class="item">6</div>
|
||||
<div class="item">c</div>
|
||||
<div class="item">3</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,43 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<!-- coding:utf-8 --><html xmlns="http://www.w3.org/1999/xhtml"><head>
|
||||
<meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: flex direction: row</title>
|
||||
<link href="mailto:somathor@gmail.com" rel="author" title="Naoki Okada" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-flow" rel="help" />
|
||||
<link href="reference/css-flexbox-column-ref.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="Test checks that when writing mode is vertical and flex-flow: column, the flex container is vertical." name="assert" />
|
||||
<style type="text/css">
|
||||
.container {
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
-webkit-flex-flow: column-reverse;
|
||||
flex-flow: column-reverse;
|
||||
-webkit-writing-mode: vertical-rl;
|
||||
writing-mode: vertical-rl;
|
||||
width: 9em;
|
||||
color: white;
|
||||
}
|
||||
.item {
|
||||
background: green;
|
||||
height: 4em;
|
||||
width: 1.5em;
|
||||
|
||||
/* make sure UA that doesn't support writing mode and flexbox fails. */
|
||||
float: right;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The test passes if you see a tall green box with pairs of the digits 1-9 and a-i listed right to left in two columns.</p>
|
||||
<div class="container">
|
||||
<div class="item">ghi</div>
|
||||
<div class="item">789</div>
|
||||
<div class="item">def</div>
|
||||
<div class="item">456</div>
|
||||
<div class="item">abc</div>
|
||||
<div class="item">123</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,58 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<!-- coding:utf-8 --><html xmlns="http://www.w3.org/1999/xhtml"><head>
|
||||
<meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: flex direction: row</title>
|
||||
<link href="mailto:somathor@gmail.com" rel="author" title="Naoki Okada" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-flow" rel="help" />
|
||||
<link href="reference/css-flexbox-column-ref.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="Test checks that when writing mode is vertical and flex-flow: column wrap-reverse, the flex container is vertical." name="assert" />
|
||||
<style type="text/css">
|
||||
.container {
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
-webkit-flex-flow: column wrap-reverse;
|
||||
flex-flow: column wrap-reverse;
|
||||
-webkit-writing-mode: vertical-rl;
|
||||
writing-mode: vertical-rl;
|
||||
width: 9em;
|
||||
min-height: 4em;
|
||||
color: white;
|
||||
align-content: flex-start;
|
||||
background: green;
|
||||
}
|
||||
.item {
|
||||
background: green;
|
||||
height: 1em;
|
||||
width: 1.5em;
|
||||
|
||||
/* make sure UA that doesn't support writing mode and flexbox fails. */
|
||||
float: right;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The test passes if you see a tall green box with pairs of the digits 1-9 and a-i listed right to left in two columns.</p>
|
||||
<div class="container">
|
||||
<div class="item">3</div>
|
||||
<div class="item">c</div>
|
||||
<div class="item">6</div>
|
||||
<div class="item">f</div>
|
||||
<div class="item">9</div>
|
||||
<div class="item">i</div>
|
||||
<div class="item">2</div>
|
||||
<div class="item">b</div>
|
||||
<div class="item">5</div>
|
||||
<div class="item">e</div>
|
||||
<div class="item">8</div>
|
||||
<div class="item">h</div>
|
||||
<div class="item">1</div>
|
||||
<div class="item">a</div>
|
||||
<div class="item">4</div>
|
||||
<div class="item">d</div>
|
||||
<div class="item">7</div>
|
||||
<div class="item">g</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,58 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<!-- coding:utf-8 --><html xmlns="http://www.w3.org/1999/xhtml"><head>
|
||||
<meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: flex direction: row</title>
|
||||
<link href="mailto:somathor@gmail.com" rel="author" title="Naoki Okada" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-flow" rel="help" />
|
||||
<link href="reference/css-flexbox-column-ref.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="Test checks that when writing mode is vertical and flex-flow: column wrap, the flex container is vertical." name="assert" />
|
||||
<style type="text/css">
|
||||
.container {
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
-webkit-flex-flow: column wrap;
|
||||
flex-flow: column wrap;
|
||||
-webkit-writing-mode: vertical-rl;
|
||||
writing-mode: vertical-rl;
|
||||
width: 9em;
|
||||
min-height: 4em;
|
||||
color: white;
|
||||
align-content: flex-start;
|
||||
background: green;
|
||||
}
|
||||
.item {
|
||||
background: green;
|
||||
height: 1em;
|
||||
width: 1.5em;
|
||||
|
||||
/* make sure UA that doesn't support writing mode and flexbox fails. */
|
||||
float: right;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The test passes if you see a tall green box with pairs of the digits 1-9 and a-i listed right to left in two columns.</p>
|
||||
<div class="container">
|
||||
<div class="item">1</div>
|
||||
<div class="item">a</div>
|
||||
<div class="item">4</div>
|
||||
<div class="item">d</div>
|
||||
<div class="item">7</div>
|
||||
<div class="item">g</div>
|
||||
<div class="item">2</div>
|
||||
<div class="item">b</div>
|
||||
<div class="item">5</div>
|
||||
<div class="item">e</div>
|
||||
<div class="item">8</div>
|
||||
<div class="item">h</div>
|
||||
<div class="item">3</div>
|
||||
<div class="item">c</div>
|
||||
<div class="item">6</div>
|
||||
<div class="item">f</div>
|
||||
<div class="item">9</div>
|
||||
<div class="item">i</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,43 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<!-- coding:utf-8 --><html xmlns="http://www.w3.org/1999/xhtml"><head>
|
||||
<meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: flex direction: row</title>
|
||||
<link href="mailto:somathor@gmail.com" rel="author" title="Naoki Okada" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-flow" rel="help" />
|
||||
<link href="reference/css-flexbox-column-ref.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="Test checks that when writing mode is vertical and flex-flow: column, the flex container is vertical." name="assert" />
|
||||
<style type="text/css">
|
||||
.container {
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
-webkit-flex-flow: column;
|
||||
flex-flow: column;
|
||||
-webkit-writing-mode: vertical-rl;
|
||||
writing-mode: vertical-rl;
|
||||
width: 9em;
|
||||
color: white;
|
||||
}
|
||||
.item {
|
||||
background: green;
|
||||
height: 4em;
|
||||
width: 1.5em;
|
||||
|
||||
/* make sure UA that doesn't support writing mode and flexbox fails. */
|
||||
float: right;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The test passes if you see a tall green box with pairs of the digits 1-9 and a-i listed right to left in two columns.</p>
|
||||
<div class="container">
|
||||
<div class="item">123</div>
|
||||
<div class="item">abc</div>
|
||||
<div class="item">456</div>
|
||||
<div class="item">def</div>
|
||||
<div class="item">789</div>
|
||||
<div class="item">ghi</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,46 @@
|
|||
<!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 Flexbox Test: Items stretch correctly while content is animating</title>
|
||||
<link href="mailto:micky2be@gmail.com" rel="author" title="Micky Brunetti" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-align-items" rel="help" />
|
||||
<link href="reference/css-flexbox-height-animation-stretch-ref.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="Items should stretch vertically in all time" name="assert" />
|
||||
<style>
|
||||
@keyframes resize {
|
||||
0% {height: 100px;}
|
||||
100% {height: 50px;}
|
||||
}
|
||||
.container {
|
||||
display: flex;
|
||||
width: 200px;
|
||||
background-color: red;
|
||||
|
||||
}
|
||||
.item {
|
||||
background-color: green;
|
||||
width: 50px;
|
||||
|
||||
}
|
||||
.content {
|
||||
height: 50px;
|
||||
}
|
||||
.bigger.content {
|
||||
height: 100px;
|
||||
animation: resize 500ms infinite alternate;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The test passes if you keep seeing a green rectangle and no red.</p>
|
||||
<div class="test">
|
||||
<div class="container">
|
||||
<div class="item"><div class="bigger content"></div></div>
|
||||
<div class="item"><div class="content"></div></div>
|
||||
<div class="item"><div class="content"></div></div>
|
||||
<div class="item"><div class="content"></div></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -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 Flexbox Test: Image Expansion</title>
|
||||
<link href="mailto:agektmr@gmail.com" rel="author" title="Eiji Kitamura" />
|
||||
<!-- You must have at least one spec link, but may have as many as are covered in the test. -->
|
||||
<!-- Be sure to make the main testing area first in the order -->
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-grow" rel="help" />
|
||||
<!-- The match link is only required if this is a reftest -->
|
||||
<link href="reference/css-flexbox-img-expand-evenly-ref.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="3 square images fill out border." name="assert" />
|
||||
<style type="text/css">
|
||||
|
||||
/* ADD STYLE BLOCK HERE (PREFERRABLE TO INLINE STYLES) */
|
||||
div.flexbox {
|
||||
height: 50px;
|
||||
width: 300px;
|
||||
border: 2px dotted black;
|
||||
display: flex;
|
||||
}
|
||||
img {
|
||||
width: 48px;
|
||||
flex-grow: 1;
|
||||
background: purple;
|
||||
border: 1px solid white;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>3 square images fill out border.</p>
|
||||
|
||||
<!-- PAGE CONTENT -->
|
||||
<div class="flexbox">
|
||||
<img src="support/solidblue.png" />
|
||||
<img src="support/solidblue.png" />
|
||||
<img src="support/solidblue.png" />
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,55 @@
|
|||
<!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>
|
||||
<meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: flex direction: row, writing mode vertical</title>
|
||||
<link href="mailto:info@ogaoga.org" rel="author" title="Tsutomu ogaoga Ogasawara" />
|
||||
<link href="http://fantasai.inkedblade.net/contact" rel="reviewer" title="Elika J Etemad" />
|
||||
<!-- You must have at least one spec link, but may have as many as are covered in the test. -->
|
||||
<!-- Be sure to make the main testing area first in the order -->
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-flow" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-writing-modes-3/#propdef-writing-mode" rel="help" />
|
||||
<!-- The match link is only required if this is a reftest -->
|
||||
<link href="reference/css-flexbox-row-ref.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="Test checks that when writing mode is vertical and flex-flow: row-reverse wrap-reverse, the flex container is vertical." name="assert" />
|
||||
<style type="text/css">
|
||||
.container {
|
||||
display: flex;
|
||||
flex-flow: row-reverse wrap-reverse;
|
||||
writing-mode: vertical-rl;
|
||||
color: white;
|
||||
|
||||
height: 9em;
|
||||
}
|
||||
.item {
|
||||
background: green;
|
||||
height: 3em;
|
||||
width: 1.5em;
|
||||
|
||||
/* make sure UA that doesn't support writing mode and flexbox fails. */
|
||||
float: right;
|
||||
}
|
||||
.error {
|
||||
position: absolute;
|
||||
background: red;
|
||||
height: 9em;
|
||||
width: 3em;
|
||||
z-index: -1;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The test passes if you see a tall green box with pairs of the 1-9 and a-i listed top to bottom in two columns.</p>
|
||||
|
||||
<div class="error"></div>
|
||||
<div class="container">
|
||||
<div class="item">ghi</div>
|
||||
<div class="item">def</div>
|
||||
<div class="item">abc</div>
|
||||
<div class="item">789</div>
|
||||
<div class="item">456</div>
|
||||
<div class="item">123</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,55 @@
|
|||
<!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>
|
||||
<meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: flex direction: row, writing mode vertical</title>
|
||||
<link href="mailto:info@ogaoga.org" rel="author" title="Tsutomu ogaoga Ogasawara" />
|
||||
<link href="http://fantasai.inkedblade.net/contact" rel="reviewer" title="Elika J Etemad" />
|
||||
<!-- You must have at least one spec link, but may have as many as are covered in the test. -->
|
||||
<!-- Be sure to make the main testing area first in the order -->
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-flow" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-writing-modes-3/#propdef-writing-mode" rel="help" />
|
||||
<!-- The match link is only required if this is a reftest -->
|
||||
<link href="reference/css-flexbox-row-ref.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="Test checks that when writing mode is vertical and flex-flow: row-reverse wrap, the flex container is vertical." name="assert" />
|
||||
<style type="text/css">
|
||||
.container {
|
||||
display: flex;
|
||||
flex-flow: row-reverse wrap;
|
||||
writing-mode: vertical-rl;
|
||||
color: white;
|
||||
|
||||
height: 9em;
|
||||
}
|
||||
.item {
|
||||
background: green;
|
||||
height: 3em;
|
||||
width: 1.5em;
|
||||
|
||||
/* make sure UA that doesn't support writing mode and flexbox fails. */
|
||||
float: right;
|
||||
}
|
||||
.error {
|
||||
position: absolute;
|
||||
background: red;
|
||||
height: 9em;
|
||||
width: 3em;
|
||||
z-index: -1;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The test passes if you see a tall green box with pairs of the 1-9 and a-i listed top to bottom in two columns.</p>
|
||||
|
||||
<div class="error"></div>
|
||||
<div class="container">
|
||||
<div class="item">789</div>
|
||||
<div class="item">456</div>
|
||||
<div class="item">123</div>
|
||||
<div class="item">ghi</div>
|
||||
<div class="item">def</div>
|
||||
<div class="item">abc</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,50 @@
|
|||
<!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>
|
||||
<meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: flex direction: row, writing mode vertical</title>
|
||||
<link href="mailto:info@ogaoga.org" rel="author" title="Tsutomu ogaoga Ogasawara" />
|
||||
<link href="http://fantasai.inkedblade.net/contact" rel="reviewer" title="Elika J Etemad" />
|
||||
<!-- You must have at least one spec link, but may have as many as are covered in the test. -->
|
||||
<!-- Be sure to make the main testing area first in the order -->
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-flow" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-writing-modes-3/#propdef-writing-mode" rel="help" />
|
||||
<!-- The match link is only required if this is a reftest -->
|
||||
<link href="reference/css-flexbox-row-ref.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="Test checks that when writing mode is vertical and flex-flow: row-reverse, the flex container is vertical." name="assert" />
|
||||
<style type="text/css">
|
||||
.container {
|
||||
display: flex;
|
||||
flex-flow: row-reverse;
|
||||
writing-mode: vertical-rl;
|
||||
color: white;
|
||||
}
|
||||
.item {
|
||||
background: green;
|
||||
height: 3em;
|
||||
width: 3em;
|
||||
|
||||
/* make sure UA that doesn't support writing mode and flexbox fails. */
|
||||
float: right;
|
||||
}
|
||||
.error {
|
||||
position: absolute;
|
||||
background: red;
|
||||
height: 9em;
|
||||
width: 3em;
|
||||
z-index: -1;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The test passes if you see a tall green box with pairs of the 1-9 and a-i listed top to bottom in two columns.</p>
|
||||
|
||||
<div class="error"></div>
|
||||
<div class="container">
|
||||
<div class="item">789<br />ghi</div>
|
||||
<div class="item">456<br />def</div>
|
||||
<div class="item">123<br />abc</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,55 @@
|
|||
<!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>
|
||||
<meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: flex direction: row, writing mode vertical</title>
|
||||
<link href="mailto:info@ogaoga.org" rel="author" title="Tsutomu ogaoga Ogasawara" />
|
||||
<link href="http://fantasai.inkedblade.net/contact" rel="reviewer" title="Elika J Etemad" />
|
||||
<!-- You must have at least one spec link, but may have as many as are covered in the test. -->
|
||||
<!-- Be sure to make the main testing area first in the order -->
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-flow" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-writing-modes-3/#propdef-writing-mode" rel="help" />
|
||||
<!-- The match link is only required if this is a reftest -->
|
||||
<link href="reference/css-flexbox-row-ref.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="Test checks that when writing mode is vertical and flex-flow: row wrap-reverse, the flex container is vertical." name="assert" />
|
||||
<style type="text/css">
|
||||
.container {
|
||||
display: flex;
|
||||
flex-flow: row wrap-reverse;
|
||||
writing-mode: vertical-rl;
|
||||
color: white;
|
||||
|
||||
height: 9em;
|
||||
}
|
||||
.item {
|
||||
background: green;
|
||||
height: 3em;
|
||||
width: 1.5em;
|
||||
|
||||
/* make sure UA that doesn't support writing mode and flexbox fails. */
|
||||
float: right;
|
||||
}
|
||||
.error {
|
||||
position: absolute;
|
||||
background: red;
|
||||
height: 9em;
|
||||
width: 3em;
|
||||
z-index: -1;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The test passes if you see a tall green box with pairs of the 1-9 and a-i listed top to bottom in two columns.</p>
|
||||
|
||||
<div class="error"></div>
|
||||
<div class="container">
|
||||
<div class="item">abc</div>
|
||||
<div class="item">def</div>
|
||||
<div class="item">ghi</div>
|
||||
<div class="item">123</div>
|
||||
<div class="item">456</div>
|
||||
<div class="item">789</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,55 @@
|
|||
<!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>
|
||||
<meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: flex direction: row, writing mode vertical</title>
|
||||
<link href="mailto:info@ogaoga.org" rel="author" title="Tsutomu ogaoga Ogasawara" />
|
||||
<link href="http://fantasai.inkedblade.net/contact" rel="reviewer" title="Elika J Etemad" />
|
||||
<!-- You must have at least one spec link, but may have as many as are covered in the test. -->
|
||||
<!-- Be sure to make the main testing area first in the order -->
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-flow" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-writing-modes-3/#propdef-writing-mode" rel="help" />
|
||||
<!-- The match link is only required if this is a reftest -->
|
||||
<link href="reference/css-flexbox-row-ref.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="Test checks that when writing mode is vertical and flex-flow: row wrap, the flex container is vertical." name="assert" />
|
||||
<style type="text/css">
|
||||
.container {
|
||||
display: flex;
|
||||
flex-flow: row wrap;
|
||||
writing-mode: vertical-rl;
|
||||
color: white;
|
||||
|
||||
height: 9em;
|
||||
}
|
||||
.item {
|
||||
background: green;
|
||||
height: 3em;
|
||||
width: 1.5em;
|
||||
|
||||
/* make sure UA that doesn't support writing mode and flexbox fails. */
|
||||
float: right;
|
||||
}
|
||||
.error {
|
||||
position: absolute;
|
||||
background: red;
|
||||
height: 9em;
|
||||
width: 3em;
|
||||
z-index: -1;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The test passes if you see a tall green box with pairs of the 1-9 and a-i listed top to bottom in two columns.</p>
|
||||
|
||||
<div class="error"></div>
|
||||
<div class="container">
|
||||
<div class="item">123</div>
|
||||
<div class="item">456</div>
|
||||
<div class="item">789</div>
|
||||
<div class="item">abc</div>
|
||||
<div class="item">def</div>
|
||||
<div class="item">ghi</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,51 @@
|
|||
<!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>
|
||||
<meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: flex direction: row, writing mode vertical</title>
|
||||
<link href="mailto:info@ogaoga.org" rel="author" title="Tsutomu ogaoga Ogasawara" />
|
||||
<link href="http://fantasai.inkedblade.net/contact" rel="reviewer" title="Elika J Etemad" />
|
||||
<!-- You must have at least one spec link, but may have as many as are covered in the test. -->
|
||||
<!-- Be sure to make the main testing area first in the order -->
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-flow" rel="help" />
|
||||
<link href="http://www.w3.org/TR/css-writing-modes-3/#propdef-writing-mode" rel="help" />
|
||||
<!-- The match link is only required if this is a reftest -->
|
||||
<link href="reference/css-flexbox-row-ref.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="Test checks that when writing mode is vertical and flex-flow: row, the flex container is vertical." name="assert" />
|
||||
<style type="text/css">
|
||||
.container {
|
||||
display: flex;
|
||||
flex-flow: row;
|
||||
writing-mode: vertical-rl;
|
||||
color: white;
|
||||
}
|
||||
.item {
|
||||
background: green;
|
||||
height: 3em;
|
||||
width: 3em;
|
||||
|
||||
/* make sure UA that doesn't support writing mode and flexbox fails. */
|
||||
float: right;
|
||||
}
|
||||
.error {
|
||||
position: absolute;
|
||||
background: red;
|
||||
height: 9em;
|
||||
width: 3em;
|
||||
z-index: -1;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>The test passes if you see a tall green box with pairs of the 1-9 and a-i listed top to bottom in two columns.</p>
|
||||
|
||||
<div class="error"></div>
|
||||
<div class="container">
|
||||
<div class="item">123<br />abc</div>
|
||||
<div class="item">456<br />def</div>
|
||||
<div class="item">789<br />ghi</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,50 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<!-- coding:utf-8 --><html xmlns="http://www.w3.org/1999/xhtml"><head>
|
||||
<meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: flex direction: row, writing mode vertical</title>
|
||||
<link href="mailto:info@ogaoga.org" rel="author" title="Tsutomu ogaoga Ogasawara" />
|
||||
<link href="http://fantasai.inkedblade.net/contact" rel="reviewer" title="Elika J Etemad" />
|
||||
<!-- You must have at least one spec link, but may have as many as are covered in the test. -->
|
||||
<!-- Be sure to make the main testing area first in the order -->
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-flow" rel="help" />
|
||||
<!-- The match link is only required if this is a reftest -->
|
||||
<link href="reference/css-flexbox-test1-ref.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="Test checks that when writing mode is vertical and flex-flow: row, the flex container is vertical." name="assert" />
|
||||
<style type="text/css">
|
||||
.container {
|
||||
display: flex;
|
||||
flex-flow: row;
|
||||
writing-mode: vertical-rl;
|
||||
color: white;
|
||||
}
|
||||
.item {
|
||||
background: green;
|
||||
height: 3em;
|
||||
width: 3em;
|
||||
|
||||
/* make sure UA that doesn't support writing mode and flexbox fails. */
|
||||
float: right;
|
||||
}
|
||||
.error {
|
||||
position: absolute;
|
||||
background: red;
|
||||
height: 9em;
|
||||
width: 3em;
|
||||
z-index: -1;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The test passes if you see a tall green box with pairs of the digits 1-9 listed top to bottom in two columns.</p>
|
||||
|
||||
<div class="error"></div>
|
||||
<div class="container">
|
||||
<div class="item">123<br />123</div>
|
||||
<div class="item">456<br />456</div>
|
||||
<div class="item">789<br />789</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</body></html>
|
|
@ -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: An element with the 'display' property set to 'flex' establishes a new block-level flex container</title>
|
||||
<link href="http://www.microsoft.com/" rel="author" title="Microsoft" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-containers" rel="help" />
|
||||
<link href="reference/align-content-001-ref.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="This test checks that an element with 'display' property set to 'flex' establishes a new block-level flex container." name="assert" />
|
||||
<style type="text/css">
|
||||
#flexbox
|
||||
{
|
||||
background-color: red;
|
||||
display: flex;
|
||||
height: 100px;
|
||||
width: 300px;
|
||||
}
|
||||
div div
|
||||
{
|
||||
background-color: green;
|
||||
width: 150px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test passes if there is no red visible on the page.</p>
|
||||
<div id="flexbox">
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,28 @@
|
|||
<!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 Flexible Box Test: display_flex</title>
|
||||
<link href="http://www.intel.com" rel="author" title="Intel" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-containers" rel="help" />
|
||||
<meta content="dom" name="flags" />
|
||||
<meta content="Check if the web engine can indenfy the display value flex." name="assert" />
|
||||
<style>
|
||||
div#test{
|
||||
display: flex;
|
||||
}
|
||||
</style>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="log"></div>
|
||||
<div id="test"></div>
|
||||
<script type="text/javascript">
|
||||
var t = async_test(document.title, {timeout:500});
|
||||
t.step(function () {
|
||||
assert_equals(window.getComputedStyle(document.querySelector('div#test')).display, "flex", "Display value is");
|
||||
});
|
||||
t.done();
|
||||
</script>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,28 @@
|
|||
<!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 Flexible Box Test: display_inline-flex</title>
|
||||
<link href="http://www.intel.com" rel="author" title="Intel" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-containers" rel="help" />
|
||||
<meta content="dom" name="flags" />
|
||||
<meta content="Check if the web engine can identify the display value inline-flex." name="assert" />
|
||||
<style>
|
||||
div#test{
|
||||
display: inline-flex;
|
||||
}
|
||||
</style>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="log"></div>
|
||||
<div id="test"></div>
|
||||
<script type="text/javascript">
|
||||
var t = async_test(document.title, {timeout:500});
|
||||
t.step(function () {
|
||||
assert_equals(window.getComputedStyle(document.querySelector('div#test')).display, "inline-flex", "Display value is");
|
||||
});
|
||||
t.done();
|
||||
</script>
|
||||
|
||||
|
||||
</body></html>
|
36
tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/flex-001.xht
Normal file
36
tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/flex-001.xht
Normal file
|
@ -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: The 'flex' shorthand adjusting the 'flex-grow' sub-property</title>
|
||||
<link href="http://www.microsoft.com/" rel="author" title="Microsoft" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-property" rel="help" />
|
||||
<link href="reference/justify-content-001-ref.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="This test checks that the flex grow factor determines the distribution of positive free space." name="assert" />
|
||||
<style type="text/css">
|
||||
#flexbox
|
||||
{
|
||||
background-color: red;
|
||||
display: flex;
|
||||
width: 300px;
|
||||
}
|
||||
div div
|
||||
{
|
||||
background-color: orange;
|
||||
flex: 1 0 auto;
|
||||
height: 100px;
|
||||
}
|
||||
#flexItem1
|
||||
{
|
||||
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 id="flexItem1"></div>
|
||||
<div></div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
53
tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/flex-002.xht
Normal file
53
tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/flex-002.xht
Normal file
|
@ -0,0 +1,53 @@
|
|||
<!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: The 'flex' shorthand adjusting the 'flex-shrink' sub-property</title>
|
||||
<link href="http://www.microsoft.com/" rel="author" title="Microsoft" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-property" rel="help" />
|
||||
<link href="reference/justify-content-001-ref.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="This test checks that the flex shrink factor is multiplied by the flex base size when distributing negative space." name="assert" />
|
||||
<style type="text/css">
|
||||
div
|
||||
{
|
||||
height: 50px;
|
||||
}
|
||||
#flexbox
|
||||
{
|
||||
background-color: red;
|
||||
display: flex;
|
||||
width: 300px;
|
||||
}
|
||||
#flexItem1
|
||||
{
|
||||
flex: 0 2 auto;
|
||||
width: 300px;
|
||||
}
|
||||
#flexItem2
|
||||
{
|
||||
width: 200px;
|
||||
}
|
||||
#flexItem1, #ref1
|
||||
{
|
||||
background-color: blue;
|
||||
}
|
||||
#flexItem2, #ref2
|
||||
{
|
||||
background-color: orange;
|
||||
}
|
||||
#ref1, #ref2
|
||||
{
|
||||
display: inline-block;
|
||||
width: 150px;
|
||||
}
|
||||
</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 id="flexItem1"></div>
|
||||
<div id="flexItem2"></div>
|
||||
</div>
|
||||
<div id="ref1"></div><div id="ref2"></div>
|
||||
|
||||
|
||||
</body></html>
|
54
tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/flex-003.xht
Normal file
54
tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/flex-003.xht
Normal file
|
@ -0,0 +1,54 @@
|
|||
<!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: Comparing two different elements using different values for the 'flex-grow' sub-property on the 'flex' shorthand</title>
|
||||
<link href="http://www.microsoft.com/" rel="author" title="Microsoft" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-property" rel="help" />
|
||||
<link href="reference/justify-content-001-ref.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="This test checks that the flex items with a different flex grow factor have different flexibilities." name="assert" />
|
||||
<style type="text/css">
|
||||
div
|
||||
{
|
||||
height: 50px;
|
||||
}
|
||||
#flexbox
|
||||
{
|
||||
background-color: red;
|
||||
display: flex;
|
||||
width: 300px;
|
||||
}
|
||||
#flexItem1
|
||||
{
|
||||
flex: 1 0 auto;
|
||||
width: 100px;
|
||||
}
|
||||
#flexItem2
|
||||
{
|
||||
flex: 2 0 auto;
|
||||
width: 50px;
|
||||
}
|
||||
#flexItem1, #ref1
|
||||
{
|
||||
background-color: blue;
|
||||
}
|
||||
#flexItem2, #ref2
|
||||
{
|
||||
background-color: orange;
|
||||
}
|
||||
#ref1, #ref2
|
||||
{
|
||||
display: inline-block;
|
||||
width: 150px;
|
||||
}
|
||||
</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 id="flexItem1"></div>
|
||||
<div id="flexItem2"></div>
|
||||
</div>
|
||||
<div id="ref1"></div><div id="ref2"></div>
|
||||
|
||||
|
||||
</body></html>
|
54
tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/flex-004.xht
Normal file
54
tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/flex-004.xht
Normal file
|
@ -0,0 +1,54 @@
|
|||
<!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: Comparing two different elements using different values for the 'flex-shrink' sub-property on the 'flex' shorthand</title>
|
||||
<link href="http://www.microsoft.com/" rel="author" title="Microsoft" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-property" rel="help" />
|
||||
<link href="reference/justify-content-001-ref.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="This test checks that the flex items with a different flex shrink factor have different flexibilities." name="assert" />
|
||||
<style type="text/css">
|
||||
div
|
||||
{
|
||||
height: 50px;
|
||||
}
|
||||
#flexbox
|
||||
{
|
||||
background-color: red;
|
||||
display: flex;
|
||||
width: 300px;
|
||||
}
|
||||
#flexItem1
|
||||
{
|
||||
flex: 0 2 auto;
|
||||
width: 300px;
|
||||
}
|
||||
#flexItem2
|
||||
{
|
||||
flex: 0 3 auto;
|
||||
width: 600px;
|
||||
}
|
||||
#flexItem1, #ref1
|
||||
{
|
||||
background-color: blue;
|
||||
}
|
||||
#flexItem2, #ref2
|
||||
{
|
||||
background-color: orange;
|
||||
}
|
||||
#ref1, #ref2
|
||||
{
|
||||
display: inline-block;
|
||||
width: 150px;
|
||||
}
|
||||
</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 id="flexItem1"></div>
|
||||
<div id="flexItem2"></div>
|
||||
</div>
|
||||
<div id="ref1"></div><div id="ref2"></div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,52 @@
|
|||
<!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 Flex-basis Test</title>
|
||||
<link href="mailto:zhangcs_423@163.com" rel="author" title="Chunsheng Zhang" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#alignment" rel="help" />
|
||||
<link href="reference/flex-align-items-center-ref.xht" rel="match" />
|
||||
<meta content="flex items center" name="assert" />
|
||||
<style type="text/css">
|
||||
#container {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border: 5px solid green;
|
||||
width: 600px;
|
||||
height: 200px;
|
||||
padding: 5px;
|
||||
border-radius: 3px;
|
||||
position: absolute;
|
||||
top: 70px;
|
||||
left: 10px;
|
||||
}
|
||||
#container > div {
|
||||
border: 2px dotted blue;
|
||||
background: green;
|
||||
border-radius: 3px;
|
||||
padding: 10px;
|
||||
width: 30px;
|
||||
height: 40px;
|
||||
text-align: center;
|
||||
flex: none;
|
||||
}
|
||||
#fail-flag {
|
||||
position: absolute;
|
||||
top: 162px;
|
||||
left: 272px;
|
||||
width: 92px;
|
||||
height: 36px;
|
||||
background: red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>This case tests that flex items center</p>
|
||||
<p>The test passes if there is no red</p>
|
||||
<div id="fail-flag"></div>
|
||||
<section id="container">
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
</section>
|
||||
|
||||
</body></html>
|
|
@ -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><meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: flex-basis - positive number</title>
|
||||
<link href="Intel" rel="author" title="http://www.intel.com" />
|
||||
<link href="Intel" rel="author" title="mailto:shiyoux.tan@intel.com" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-basis" rel="help" title="7.3.3. The 'flex-basis' property" />
|
||||
<link href="reference/ref-filled-green-100px-square.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="The 'flex-basis' property set positive number, the actual value of test element size is same as the positive number" name="assert" />
|
||||
<style>
|
||||
#container {
|
||||
background-color: red;
|
||||
display: flex;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
#container div{
|
||||
background-color: green;
|
||||
height: 100px;
|
||||
}
|
||||
#test {
|
||||
flex-basis: 60px;
|
||||
}
|
||||
#ref {
|
||||
width: 40px;
|
||||
}
|
||||
</style>
|
||||
</head><body>
|
||||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
||||
<div id="container">
|
||||
<div id="test"></div>
|
||||
<div id="ref"></div>
|
||||
</div>
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,43 @@
|
|||
<!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><meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: flex-basis - positive number</title>
|
||||
<link href="Intel" rel="author" title="http://www.intel.com" />
|
||||
<link href="Intel" rel="author" title="mailto:shiyoux.tan@intel.com" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-basis" rel="help" title="7.3.3. The 'flex-basis' property" />
|
||||
<link href="reference/ref-filled-green-100px-square.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="The 'flex-basis' property specified correct value, the actual value of test element size is same as to the value of 'flex-basis' property, and the 'width' property is invalid." name="assert" />
|
||||
<style>
|
||||
#container {
|
||||
background-color: red;
|
||||
display: flex;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
#container div{
|
||||
height: 100px;
|
||||
}
|
||||
#test {
|
||||
flex-basis: 60px;
|
||||
width: 80px;
|
||||
}
|
||||
#ref {
|
||||
background-color: green;
|
||||
width: 40px;
|
||||
}
|
||||
#cover {
|
||||
background-color: green;
|
||||
height: 100px;
|
||||
margin-top: -100px;
|
||||
width: 60px;
|
||||
}
|
||||
</style>
|
||||
</head><body>
|
||||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
||||
<div id="container">
|
||||
<div id="test"></div>
|
||||
<div id="ref"></div>
|
||||
</div>
|
||||
<div id="cover"></div>
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,43 @@
|
|||
<!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><meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: flex-basis - negative number(width not specified)</title>
|
||||
<link href="Intel" rel="author" title="http://www.intel.com" />
|
||||
<link href="Intel" rel="author" title="mailto:shiyoux.tan@intel.com" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-basis" rel="help" title="7.3.3. The 'flex-basis' property" />
|
||||
<link href="reference/ref-filled-green-100px-square.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="The 'flex-basis' property set negative number, the tested element is not shown when width not set either." name="assert" />
|
||||
<style>
|
||||
#container {
|
||||
background-color: red;
|
||||
display: flex;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
#container div{
|
||||
height: 100px;
|
||||
}
|
||||
#test {
|
||||
flex-basis: -50px;
|
||||
}
|
||||
#ref {
|
||||
background-color: green;
|
||||
width: 50px;
|
||||
}
|
||||
#cover {
|
||||
background-color: green;
|
||||
height: 100px;
|
||||
margin-left: 50px;
|
||||
margin-top: -100px;
|
||||
width: 50px;
|
||||
}
|
||||
</style>
|
||||
</head><body>
|
||||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
||||
<div id="container">
|
||||
<div id="test"></div>
|
||||
<div id="ref"></div>
|
||||
</div>
|
||||
<div id="cover"></div>
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,45 @@
|
|||
<!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><meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: flex-basis - negative number(width specified)</title>
|
||||
<link href="Intel" rel="author" title="http://www.intel.com" />
|
||||
<link href="Intel" rel="author" title="mailto:shiyoux.tan@intel.com" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-basis" rel="help" title="7.3.3. The 'flex-basis' property" />
|
||||
<link href="reference/ref-filled-green-100px-square.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="The 'flex-basis' property set negative number, the actual width of tested element is
|
||||
same as the value of 'width' property specified." name="assert" />
|
||||
<style>
|
||||
#container {
|
||||
background-color: red;
|
||||
display: flex;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
#container div{
|
||||
background-color: green;
|
||||
height: 100px;
|
||||
}
|
||||
#test {
|
||||
flex-basis: -50px;
|
||||
width: 30px;
|
||||
}
|
||||
#ref {
|
||||
width: 50px;
|
||||
}
|
||||
#cover {
|
||||
background-color: green;
|
||||
height: 100px;
|
||||
margin-left: 80px;
|
||||
margin-top: -100px;
|
||||
width: 20px;
|
||||
}
|
||||
</style>
|
||||
</head><body>
|
||||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
||||
<div id="container">
|
||||
<div id="test"></div>
|
||||
<div id="ref"></div>
|
||||
</div>
|
||||
<div id="cover"></div>
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,30 @@
|
|||
<!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><meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: flex-basis - 0</title>
|
||||
<link href="Intel" rel="author" title="http://www.intel.com" />
|
||||
<link href="Intel" rel="author" title="mailto:shiyoux.tan@intel.com" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-basis" rel="help" title="7.3.3. The 'flex-basis' property" />
|
||||
<link href="reference/ref-filled-green-100px-square.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="The 'flex-basis' property set '0', the actual width of tested element is same as 0." name="assert" />
|
||||
<style>
|
||||
#container {
|
||||
background-color: green;
|
||||
display: flex;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
#test {
|
||||
background-color: red;
|
||||
flex-basis: 0;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
</style>
|
||||
</head><body>
|
||||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
||||
<div id="container">
|
||||
<div id="test"></div>
|
||||
</div>
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,30 @@
|
|||
<!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><meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: flex-basis - 0%</title>
|
||||
<link href="Intel" rel="author" title="http://www.intel.com" />
|
||||
<link href="Intel" rel="author" title="mailto:shiyoux.tan@intel.com" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-basis" rel="help" title="7.3.3. The 'flex-basis' property" />
|
||||
<link href="reference/ref-filled-green-100px-square.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="The 'flex-basis' property set '0%', the actual width of tested element is same as 0." name="assert" />
|
||||
<style>
|
||||
#container {
|
||||
background-color: green;
|
||||
display: flex;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
#test {
|
||||
background-color: red;
|
||||
flex-basis: 0%;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
</style>
|
||||
</head><body>
|
||||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
||||
<div id="container">
|
||||
<div id="test"></div>
|
||||
</div>
|
||||
|
||||
</body></html>
|
|
@ -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><meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: flex-basis - auto</title>
|
||||
<link href="Intel" rel="author" title="http://www.intel.com" />
|
||||
<link href="Intel" rel="author" title="mailto:shiyoux.tan@intel.com" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-basis" rel="help" title="7.3.3. The 'flex-basis' property" />
|
||||
<link href="reference/ref-filled-green-100px-square.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="The 'flex-basis' property set 'auto', the actual width of tested element same as the value which specified by width property." name="assert" />
|
||||
<style>
|
||||
#container {
|
||||
background-color: red;
|
||||
display: flex;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
#container div{
|
||||
background-color: green;
|
||||
height: 100px;
|
||||
}
|
||||
#ref {
|
||||
width: 50px;
|
||||
}
|
||||
#test {
|
||||
flex-basis: auto;
|
||||
width: 50px;
|
||||
}
|
||||
</style>
|
||||
</head><body>
|
||||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
||||
<div id="container">
|
||||
<div id="test"></div>
|
||||
<div id="ref"></div>
|
||||
</div>
|
||||
|
||||
</body></html>
|
|
@ -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><meta charset="utf-8" />
|
||||
<title>CSS Flexbox Test: flex-basis - 50%</title>
|
||||
<link href="Intel" rel="author" title="http://www.intel.com" />
|
||||
<link href="Intel" rel="author" title="mailto:shiyoux.tan@intel.com" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-basis" rel="help" title="7.3.3. The 'flex-basis' property" />
|
||||
<link href="reference/ref-filled-green-100px-square.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="The 'flex-basis' property set positive percentage, the actual width of tested element same as the percentage of flex container size." name="assert" />
|
||||
<style>
|
||||
#container {
|
||||
background-color: red;
|
||||
display: flex;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
#container div{
|
||||
background-color: green;
|
||||
height: 100px;
|
||||
}
|
||||
#ref {
|
||||
width: 40px;
|
||||
}
|
||||
#test {
|
||||
flex-basis: 60%;
|
||||
}
|
||||
</style>
|
||||
</head><body>
|
||||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
||||
<div id="container">
|
||||
<div id="ref"></div>
|
||||
<div id="test"></div>
|
||||
</div>
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,47 @@
|
|||
<!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 Flexbox Test: flex-wrap: wrap</title>
|
||||
<link href="mailto:tokuda109@gmail.com" rel="author" title="Tsuyoshi Tokuda" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-wrap" rel="help" />
|
||||
<link href="reference/flex-box-wrap-ref.xht" rel="match" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="the test passes if you see green box." name="assert" />
|
||||
<style type="text/css">
|
||||
|
||||
.flex-box {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin: 0;
|
||||
padding-left: 0;
|
||||
width: 200px;
|
||||
}
|
||||
.flex-item,
|
||||
.error {
|
||||
list-style-type: none;
|
||||
width: 120px;
|
||||
height: 100px;
|
||||
background-color: green;
|
||||
}
|
||||
.error {
|
||||
position: absolute;
|
||||
top: 100px;
|
||||
left: 0;
|
||||
background-color: red;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>There should be a green block with no red.</p>
|
||||
|
||||
<ul class="flex-box">
|
||||
<li class="flex-item">width: 120px</li>
|
||||
<li class="flex-item">width: 120px</li>
|
||||
<li class="error"></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,30 @@
|
|||
<!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: flex-container-margin-not-collapse-with-content-margin</title>
|
||||
<link href="http://www.github.com/sskyy" rel="author" title="houzhenyu" />
|
||||
<link href="http://dev.w3.org/csswg/css-flexbox-1/#item-margins" rel="help" />
|
||||
<link href="reference/flex-container-margin-ref.xht" rel="match" />
|
||||
<meta content="The margins of adjacent flex items do not collapse." name="assert" />
|
||||
<style>
|
||||
.flex-container{
|
||||
display: flex;
|
||||
margin:20px;
|
||||
background: #333;
|
||||
}
|
||||
.flex-item{
|
||||
width:50px;
|
||||
height:50px;
|
||||
margin:20px;
|
||||
background: #eee;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="flex-container">
|
||||
<div class="flex-item"></div>
|
||||
<div class="flex-item"></div>
|
||||
<div class="flex-item"></div>
|
||||
</div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -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: flex-direction: column-reverse swaps main start and end directions</title>
|
||||
<link href="mailto:galineau@adobe.com" rel="author" title="Sylvain Galineau" />
|
||||
<link href="mailto:arronei@microsoft.com" rel="reviewer" title="Arron Eicholz" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-direction" rel="help" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="This test checks that column-reverse flex-direction swaps the main start and main end directions" name="assert" />
|
||||
<style>
|
||||
.test {
|
||||
display: flex;
|
||||
float:left;
|
||||
height: 3em;
|
||||
}
|
||||
|
||||
.test > span {
|
||||
height: 1em;
|
||||
}
|
||||
|
||||
#column {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
#column-reverse {
|
||||
flex-direction: column-reverse;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test passes if both the two columns below are identical.</p>
|
||||
<div id="column" class="test">
|
||||
<span>A</span><span>B</span><span>C</span>
|
||||
</div>
|
||||
<div id="column-reverse" class="test">
|
||||
<span>C</span><span>B</span><span>A</span>
|
||||
</div>
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,65 @@
|
|||
<!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: flex flow direction</title>
|
||||
<link href="http://www.github.com/sskyy" rel="author" title="houzhenyu" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-direction" rel="help" />
|
||||
<link href="reference/flex-direction-modify.xht" rel="match" />
|
||||
<meta content="Changing 'flex-direction' with JavaScript and then changing it back should returns to the original look." name="assert" />
|
||||
<style>
|
||||
.flex-container{
|
||||
display: flex;
|
||||
margin:20px;
|
||||
background: #333;
|
||||
}
|
||||
.flex-item{
|
||||
width:50px;
|
||||
height:50px;
|
||||
margin:20px;
|
||||
background: #eee;
|
||||
line-height: 50px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
.flex-container.flex-direction-row{
|
||||
flex-direction : row;
|
||||
}
|
||||
|
||||
.flex-container.flex-direction-row-reverse{
|
||||
flex-direction : row-reverse;
|
||||
}
|
||||
|
||||
.flex-container.flex-direction-column{
|
||||
flex-direction : column;
|
||||
}
|
||||
.flex-container.flex-direction-column-reverse{
|
||||
flex-direction : column-reverse;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>flex-direction:<span id="current_direction">row</span></h1>
|
||||
<div class="flex-container" id="flex_container"><div class="flex-item">1</div><div class="flex-item">2</div><div class="flex-item">3</div></div>
|
||||
|
||||
<script>
|
||||
var container = document.getElementById("flex_container");
|
||||
var direction_text = document.getElementById("current_direction");
|
||||
var baseClass = "flex-container ";
|
||||
var classPrefix = "flex-direction-";
|
||||
function change_direction( direction ){
|
||||
container.className = baseClass + classPrefix + direction;
|
||||
notify( direction );
|
||||
}
|
||||
|
||||
function notify( direction ){
|
||||
direction_text.innerHTML = direction;
|
||||
}
|
||||
|
||||
change_direction("row");
|
||||
change_direction("row-reverse");
|
||||
change_direction("column");
|
||||
change_direction("row-column-reverse");
|
||||
change_direction("row");
|
||||
</script>
|
||||
|
||||
</body></html>
|
|
@ -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: flow-direction:row-reverse swaps main start and end directions</title>
|
||||
<link href="mailto:galineau@adobe.com" rel="author" title="Sylvain Galineau" />
|
||||
<link href="mailto:arronei@microsoft.com" rel="reviewer" title="Arron Eicholz" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-direction" rel="help" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="This test checks that row-reverse flex-direction swaps the main start and main end directions" name="assert" />
|
||||
<style>
|
||||
.test {
|
||||
display: flex;
|
||||
width: 3em;
|
||||
}
|
||||
|
||||
.test > span {
|
||||
width: 1em;
|
||||
}
|
||||
|
||||
#row {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
#row-reverse {
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test passes if both the lines below are identical.</p>
|
||||
<div id="row" class="test">
|
||||
<span>A</span><span>B</span><span>C</span>
|
||||
</div>
|
||||
<div id="row-reverse" class="test">
|
||||
<span>C</span><span>B</span><span>A</span>
|
||||
</div>
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,45 @@
|
|||
<!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: flex-direction:row has the same orientation as inline axis</title>
|
||||
<link href="mailto:galineau@adobe.com" rel="author" title="Sylvain Galineau" />
|
||||
<link href="mailto:arronei@microsoft.com" rel="reviewer" title="Arron Eicholz" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-direction" rel="help" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="This test checks that the main axis of the row flex-direction has the same orientation as the inline axis of the current vertical writing mode" name="assert" />
|
||||
<style>
|
||||
#vertical {
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
.test {
|
||||
display: flex;
|
||||
width: 3em;
|
||||
flex-direction :row;
|
||||
}
|
||||
|
||||
.test > span {
|
||||
width: 1em;
|
||||
direction: ltr;
|
||||
}
|
||||
|
||||
#row-ltr {
|
||||
direction: ltr;
|
||||
}
|
||||
|
||||
#row-rtl {
|
||||
direction: rtl;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test passes if both the two columns below are identical.</p>
|
||||
<div id="vertical">
|
||||
<div id="row-ltr" class="test">
|
||||
<span>A</span><span>B</span><span>C</span>
|
||||
</div>
|
||||
<div id="row-rtl" class="test">
|
||||
<span>C</span><span>B</span><span>A</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,40 @@
|
|||
<!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: flex-direction:row axis matches that of writing mode inline axis</title>
|
||||
<link href="mailto:galineau@adobe.com" rel="author" title="Sylvain Galineau" />
|
||||
<link href="mailto:arronei@microsoft.com" rel="reviewer" title="Arron Eicholz" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-direction" rel="help" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="This test checks that the main axis of the row flex-direction has the same orientation as the inline axis of the current writing mode" name="assert" />
|
||||
<style>
|
||||
|
||||
.test {
|
||||
display: flex;
|
||||
width: 3em;
|
||||
flex-direction :row;
|
||||
}
|
||||
|
||||
.test > span {
|
||||
width: 1em;
|
||||
direction: ltr;
|
||||
}
|
||||
|
||||
#row-ltr {
|
||||
direction: ltr;
|
||||
}
|
||||
|
||||
#row-rtl {
|
||||
direction: rtl;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test passes if both the lines below are identical.</p>
|
||||
<div id="row-ltr" class="test">
|
||||
<span>A</span><span>B</span><span>C</span>
|
||||
</div>
|
||||
<div id="row-rtl" class="test">
|
||||
<span>C</span><span>B</span><span>A</span>
|
||||
</div>
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,70 @@
|
|||
<!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: flex flow direction</title>
|
||||
<link href="http://www.github.com/sskyy" rel="author" title="houzhenyu" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-direction" rel="help" />
|
||||
<link href="reference/flex-direction-with-element-insert.xht" rel="match" />
|
||||
<meta content="The flex items inserted by script shuould follow the right direction what the flex-direction property directives." name="assert" />
|
||||
<style>
|
||||
.flex-container{
|
||||
display: flex;
|
||||
margin:20px;
|
||||
background: #333;
|
||||
}
|
||||
.flex-item{
|
||||
width:50px;
|
||||
height:50px;
|
||||
margin:20px;
|
||||
background: #eee;
|
||||
line-height: 50px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
.flex-container.flex-direction-row{
|
||||
flex-direction : row;
|
||||
}
|
||||
|
||||
.flex-container.flex-direction-row-reverse{
|
||||
flex-direction : row-reverse;
|
||||
}
|
||||
|
||||
.flex-container.flex-direction-column{
|
||||
flex-direction : column;
|
||||
}
|
||||
.flex-container.flex-direction-column-reverse{
|
||||
flex-direction : column-reverse;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>flex-direction:row</h1>
|
||||
<div class="flex-container flex-direction-row" id="flex-direction-row"><div class="flex-item">1</div><div class="flex-item">2</div><div class="flex-item">3</div></div>
|
||||
|
||||
<h1>flex-direction:row-reverse</h1>
|
||||
<div class="flex-container flex-direction-row-reverse" id="flex-direction-row-reverse"><div class="flex-item">1</div><div class="flex-item">2</div><div class="flex-item">3</div></div>
|
||||
|
||||
<h1>flex-direction:column</h1>
|
||||
<div class="flex-container flex-direction-column" id="flex-direction-column"><div class="flex-item">1</div><div class="flex-item">2</div><div class="flex-item">3</div></div>
|
||||
|
||||
<h1>flex-direction:column-reverse</h1>
|
||||
<div class="flex-container flex-direction-column-reverse" id="flex-direction-column-reverse"><div class="flex-item">1</div><div class="flex-item">2</div><div class="flex-item">3</div></div>
|
||||
|
||||
|
||||
<script>
|
||||
var ids = ['flex-direction-row',
|
||||
'flex-direction-row-reverse',
|
||||
'flex-direction-column',
|
||||
'flex-direction-column-reverse'];
|
||||
|
||||
for( var i in ids ){
|
||||
var new_element = document.createElement("div")
|
||||
new_element.className="flex-item";
|
||||
new_element.innerHTML="new";
|
||||
var container = document.getElementById( ids[i] );
|
||||
container.appendChild( new_element );
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,54 @@
|
|||
<!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: flex flow direction</title>
|
||||
<link href="http://www.github.com/sskyy" rel="author" title="houzhenyu" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-direction" rel="help" />
|
||||
<link href="reference/flex-direction.xht" rel="match" />
|
||||
<meta content="The flow of flex items in the the flex container should observe the flex-direction property." name="assert" />
|
||||
<style>
|
||||
.flex-container{
|
||||
display: flex;
|
||||
margin:20px;
|
||||
background: #333;
|
||||
}
|
||||
.flex-item{
|
||||
width:50px;
|
||||
height:50px;
|
||||
margin:20px;
|
||||
background: #eee;
|
||||
line-height: 50px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
.flex-container.flex-direction-row{
|
||||
flex-direction : row;
|
||||
}
|
||||
|
||||
.flex-container.flex-direction-row-reverse{
|
||||
flex-direction : row-reverse;
|
||||
}
|
||||
|
||||
.flex-container.flex-direction-column{
|
||||
flex-direction : column;
|
||||
}
|
||||
.flex-container.flex-direction-column-reverse{
|
||||
flex-direction : column-reverse;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>flex-direction:row</h1>
|
||||
<div class="flex-container flex-direction-row"><div class="flex-item">1</div><div class="flex-item">2</div><div class="flex-item">3</div></div>
|
||||
|
||||
<h1>flex-direction:row-reverse</h1>
|
||||
<div class="flex-container flex-direction-row-reverse"><div class="flex-item">1</div><div class="flex-item">2</div><div class="flex-item">3</div></div>
|
||||
|
||||
<h1>flex-direction:column</h1>
|
||||
<div class="flex-container flex-direction-column"><div class="flex-item">1</div><div class="flex-item">2</div><div class="flex-item">3</div></div>
|
||||
|
||||
<h1>flex-direction:column-reverse</h1>
|
||||
<div class="flex-container flex-direction-column-reverse"><div class="flex-item">1</div><div class="flex-item">2</div><div class="flex-item">3</div></div>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -0,0 +1,25 @@
|
|||
<!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 Flexible Box Test: flex-direction_column-reverse</title>
|
||||
<link href="http://www.intel.com" rel="author" title="Intel" />
|
||||
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-direction-property" rel="help" />
|
||||
<link href="support/test-style.css" rel="stylesheet" />
|
||||
<meta content="" name="flags" />
|
||||
<meta content="Check if the web engine can identify the flex-direction value column-reverse." name="assert" />
|
||||
<style>
|
||||
#test{
|
||||
height: 200px;
|
||||
width: 200px;
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test passes if:<br />
|
||||
1. the rectangle 1, 2, 3 show up in a vertical column in a red rectangle and no gap between them.<br />
|
||||
2. the rectangle 1, 2, 3 appear in bottom left of red rectangle and from top to bottom of the column: 3, 2, 1.</p>
|
||||
<div id="test"><div id="test01">1</div><div id="test02">2</div><div id="test03">3</div></div>
|
||||
|
||||
|
||||
</body></html>
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue