mirror of
https://github.com/servo/servo
synced 2026-04-28 18:37:39 +02:00
33 lines
1.2 KiB
HTML
33 lines
1.2 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-block' 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">
|
|
<meta name="flags" content="ahem">
|
|
<meta name="assert" content="The 'letter-spacing' property is applied to 'display: inline-block' elements.">
|
|
<style type="text/css">
|
|
div
|
|
{
|
|
font: 16px/1em Ahem;
|
|
}
|
|
#div1
|
|
{
|
|
display: inline-block;
|
|
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 id="div1">XXXXXX</div>
|
|
<div id="div2"></div>
|
|
</body>
|
|
</html> |