aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/autoheight-flexbox-003.xht
blob: 031b57689261f623d566c3fbaab436ddc66b8ae8 (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
51
52
53
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/#flow-from" 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">&#xA0;</p>
			</div>
		</div>
	

</body></html>