summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/deprecated-flexbox/015.html
blob: b033b6f50662530152c6756b08442dd0f49b3557 (plain)
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
<html>
<head>
<style>
div {
  display: -moz-box;
  display: -webkit-box;
  display: box;
}

div.outer {
  background-color:red;
  height: 100px;
  -moz-box-flex: 1;
  -webkit-box-flex: 1;
  box-flex: 1;
  max-width: 100px;
}

div.sides {
  -moz-box-flex: 1;
  -webkit-box-flex: 1;
  box-flex: 1;
  background-color: red;
}

div.inner {
  background-color:green;
  width:100px;
  height:100px;
  display: block;
}
</style>
</head>
<body>
<p>You should see a single 100x100 green square below. If you see any red, then
the test has failed.</p>
<div style="width:300px">
<div class="outer">
<div class="sides"></div>
<div class="inner"></div>
<div class="sides"></div>
</div>
</div>
</body>