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: Absolute replaced elements with 'margin-top' and 'margin-bottom' as 'auto'</title>
5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-replaced-height">
7 <meta name="flags" content="image">
8 <meta name="assert" content="An absolutely positioned replaced elements' used value of 'margin-top' and/or 'margin-bottom' set to 'auto' is '0'.">
9 <style type="text/css">
10 div
11 {
12 border-bottom: solid orange;
13 border-top: solid orange;
14 height: 15px;
15 line-height: 0;
16 width: 1in;
17 }
18 img
19 {
20 margin-bottom: auto;
21 margin-top: auto;
22 position: absolute;
23 }
24 </style>
25 </head>
26 <body>
27 <p>Test passes if there is no white space between the blue box below and the orange lines.</p>
28 <div>
29 <img alt="blue 15x15" src="support/blue15x15.png">
30 </div>
31 </body>
32 </html>