Files
servo/tests/wpt/css-tests/css21_dev/html4/floats-015.htm

45 lines
1.6 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Test: Right floated elements margins do not collapse</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/">
<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2012-04-07 -->
<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats">
<link rel="match" href="reference/floats-014-ref.htm">
<meta name="flags" content="">
<meta name="assert" content="Right floating boxes never collapse with margins of adjacent boxes or other floats.">
<style type="text/css">
#div1
{
border: solid 5px black;
height: 232px;
width: 232px;
}
div div
{
background: blue;
height: 96px;
margin: 10px;
width: 96px;
}
#div2, #div4
{
float: right;
}
#div3
{
float: left;
}
</style>
</head>
<body>
<p>Test passes if there is twice as much space between the blue squares as there is between the blue squares and the black container edge.</p>
<div id="div1">
<div id="div2"></div>
<div></div>
<div id="div3"></div>
<div id="div4"></div>
</div>
</body>
</html>