blob: 77d46c8d11f22c2a5f86b3dcf0dfcae2a402e7d9 (
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
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CSS Test: font-sizes in pixels compared to images in pixels</title>
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/fonts/size/007.html" type="text/html"/>
<link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-size-props" />
<link rel="help" href="http://www.w3.org/TR/css-fonts-3/#font-size-prop"/>
<style type="text/css">
p { color: navy; }
span { color: silver; }
.a { font: 10px Arial, sans-serif; }
.b { font: 20px Arial, sans-serif; }
.c { font: 30px Arial, sans-serif; }
.a img { height: 10px; }
.b img { height: 20px; }
.c img { height: 30px; }
</style>
</head>
<body>
<p class="a">The box X<img src="support/1x1-navy.png"
alt="[FAIL]"/>X should be taller than the Xs on either side of
it. <span>xxxxxxxxxx xxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxxx
xxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxx xxxxxxxxxxxxxx
xxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxx xxxxxxxxxx</span></p>
<p class="b">The box X<img src="support/1x1-navy.png"
alt="[FAIL]"/>X should be taller than the Xs on either side of
it. <span>xxxxxxxxxx xxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxxx
xxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxx xxxxxxxxxxxxxx
xxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxx xxxxxxxxxx</span></p>
<p class="c">The box X<img src="support/1x1-navy.png"
alt="[FAIL]"/>X should be taller than the Xs on either side of
it. <span>xxxxxxxxxx xxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxxx
xxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxx xxxxxxxxxxxxxx
xxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxx xxxxxxxxxx</span></p>
</body>
</html>
|