1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <title>CSS Test: Background-position using 'em' units with a nominal value, 6em</title>
5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/colors.html#propdef-background-position">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/colors.html#background-properties">
8 <meta name="flags" content="ahem image">
9 <meta name="assert" content="The 'background-position' property correctly applies a nominal length value in 'em' units.">
10 <style type="text/css">
11 div
12 {
13 font: 20px/1 Ahem;
14 height: 1in;
15 }
16 #div1
17 {
18 border: 3px solid orange;
19 width: 135px;
20 }
21 div div
22 {
23 background-image: url("support/black15x15.png");
24 background-position: 6em;
25 background-repeat: no-repeat;
26 width: 140px;
27 }
28 </style>
29 </head>
30 <body>
31 <p>Test passes if the black square below is vertically centered and on the right inner edge of the orange box.</p>
32 <div id="div1">
33 <div></div>
34 </div>
35 </body>
36 </html>