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

29 lines
994 B
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Test: Floated left and aligned with current line box</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/">
<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats">
<link rel="match" href="reference/floats-036-ref.htm">
<meta name="flags" content="">
<meta name="assert" content="A floated elements top edge will be aligned with the top of a line box.">
<style type="text/css">
div
{
width: 5in;
}
#span1
{
float: left;
}
</style>
</head>
<body>
<p>Test passes if the "Filler Text" below is all on the same line.</p>
<div>
<span>Filler Text</span>
<span id="span1">Filler Text</span>
</div>
</body>
</html>