46 lines
691 B
HTML
46 lines
691 B
HTML
<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>
|
|
|
|
|