blob: 8a9451382ae44d1c8df57a6ca571eae515a88df3 [file] [log] [blame]
<!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 Test: Flexbox does not shrink to fit children when width and height are specified. - Reference </title>
<link rel="author" title="Codeaurora" href="http://www.codeaurora.org/" />
<link rel="help" href="http://www.w3.org/TR/css3-flexbox/"/>
<style type="text/css">
.parent
{
background: url('../support/flexbox_300x200_red.png') no-repeat green;
width:500px;
height:500px;
position: relative;
}
.box
{
width:300px;
height:200px;
background: url('../support/flexbox_200x100_red.png') no-repeat green;
}
.child
{
width:100px;
height:100px;
background: url('../support/flexbox_100x100_green.png') no-repeat green;
position: absolute;
}
.two
{
left: 100px;
}
</style>
</head>
<body>
<p>Test passes if there is no red visible on the page.</p>
<div class="parent">
<div class="box">
<div class="child">parent is 300x200px</div>
<div class="child two">two children are 100x100px</div>
</div>
</div>
</body>
</html>