blob: 6a85f657b2b4383b0c21176042f53505dc438984 (
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
|
<!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 sized region inside an auto height flexbox</title>
<link href="mailto:badea@adobe.com" rel="author" title="Catalin Badea" />
<style>
.content {
font-family: Ahem;
font-size: 20px;
line-height: 1em;
color: green;
}
.region {
width: 100px;
height: 100px;
background-color: red;
}
.flex {
display: flex;
width: 150px;
background-color: gray;
}
</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">
<div class="region">
<div class="content">
XXXXX<br />
XXXXX<br />
XXXXX<br />
XXXXX<br />
XXXXX
</div>
</div>
</div>
</body></html>
|