aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/css-tests/css-flexbox-1_dev/html/row-flexbox-break.htm
blob: 45ef33b185f9172f61180a0685543b832f5b8c27 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<html><head>
		<title>CSS Regions: row flex container fragmentation</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/#flow-from" 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/#pagination" rel="help">
		<meta content="ahem" name="flags">
		<meta content="Test checks that a flex container with row flow is split between regions." name="assert">
		<link href="reference/row-flexbox-break-ref.htm" rel="match">
		<style>
			.flex {
				display: flex;
				flex-direction: row;
				flow-into: flow;
			}

			.region {
				flow-from: flow;
				height: 40px;
				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 on the same horizontal line.</li>
			<li>You shouldn't see any red.</li>
		</ul>
		<div class="flex">
			<div class="item">XX<br>XX<br>XX<br>XX<br></div>
			<div class="item">XX<br>XX<br>XX<br>XX<br></div>
		</div>
		<div class="region"><p class="red">&nbsp;</p></div>
		<div class="region"><p class="red">&nbsp;</p></div>
	

</body></html>