Files
servo/tests/wpt/css-tests/css21_dev/html4/letter-spacing-applies-to-001.htm

36 lines
1.3 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Test: Letter-spacing application on a 'display: inline' element</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/">
<link rel="help" href="http://www.w3.org/TR/CSS21/text.html#propdef-letter-spacing">
<link rel="help" href="http://www.w3.org/TR/CSS21/text.html#spacing-props">
<link rel="match" href="reference/black_box_ends_when_blue_box_ends_6_boxes_ahem.htm">
<meta name="flags" content="ahem">
<meta name="assert" content="The 'letter-spacing' property is applied to 'display: inline' elements.">
<style type="text/css">
div
{
font: 16px/1em Ahem;
}
#div1
{
display: inline;
letter-spacing: 1em;
}
#div2
{
background: blue;
height: 1em;
width: 11em;
}
</style>
</head>
<body>
<p>Test passes if there are six black boxes below and the last black box ends when the blue box ends.</p>
<div>
<div id="div1">XXXXXX</div>
<div id="div2"></div>
</div>
</body>
</html>