Files
servo/tests/wpt/css-tests/css21_dev/html4/numbers-units-007.htm

31 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: Em sizes</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/">
<link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units">
<link rel="match" href="reference/numbers-units-007-ref.htm">
<meta name="flags" content="ahem">
<meta name="assert" content="The 'em' unit is equal to the computed value of the 'font-size' property (default) of the element on which it is used.">
<style type="text/css">
#test
{
background: black;
height: 1em;
width: 1em;
}
div
{
font-family: Ahem;
margin-top: 10px;
}
</style>
</head>
<body>
<p>Test passes if the two boxes below are the same size.</p>
<div id="div1">
<div id="test"></div>
<div>X</div>
</div>
</body>
</html>