Files
servo/tests/wpt/css-tests/css21_dev/html4/inline-formatting-context-010.htm

37 lines
1.1 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Test: Line boxes are tall enough for all boxes</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/">
<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-formatting">
<meta name="flags" content="ahem">
<meta name="assert" content="A line box is always tall enough to contain all the boxes in the line.">
<style type="text/css">
div
{
height: 25px;
white-space: pre;
}
span
{
background: blue;
font: 50px Ahem;
}
#span1
{
line-height: 50px;
}
#span2
{
line-height: 10px;
}
</style>
</head>
<body>
<p>Test passes if the black squares and blue rectangles have the same height.</p>
<div>
<span id="span1"> X </span><span id="span2"> X </span>
</div>
</body>
</html>