blob: a3e08e45437f01ce1152ec1ac1295a00ff2bc551 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
<!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="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units" />
<link rel="help" href="https://www.w3.org/TR/css-values-3/#font-relative-lengths" />
<link rel="help" href="https://www.w3.org/TR/css-values-3/#absolute-lengths" />
<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>
|