Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>CSS Test: Units: Equivalence</title>
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
<link rel="reviewer" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-29 -->
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/units/001.html" type="text/html"/>
<link rel="match" href="units-001-ref.xht" />
<meta name="flags" content="ahem"/>
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style type="text/css">
table { font: 20px/1 Ahem; }
td { padding: 0; background: red; }
div { background: green; height: 1.25em; }
.px { width: 200px; }
.em { width: 10em; }
.ex { width: 12.5ex; }
.in { width: 2.08333in; }
.cm { width: 5.29166cm; }
.mm { width: 52.9166mm; }
.pt { width: 150pt; }
.pc { width: 12.5pc; }
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<table>
<tr>
<td>
<div class="px"></div>
<div class="em"></div>
<div class="ex"></div>
<div class="in"></div>
<div class="cm"></div>
<div class="mm"></div>
<div class="pt"></div>
<div class="pc"></div>
</td>
</tr>
</table>
</body>
</html>