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: Vertical-align set to 'sub' does not adjust font-size</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#propdef-vertical-align">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#leading">
8 <meta name="flags" content="">
9 <meta name="assert" content="The 'vertical-align' property value 'sub' has no effect on the font-size of an element's text.">
10 <style type="text/css">
11 div
12 {
13 font-size: 1in;
14 }
15 #span1
16 {
17 color: red;
18 position: absolute;
19 }
20 #span2
21 {
22 color: green;
23 position: absolute;
24 vertical-align: sub;
25 }
26 </style>
27 </head>
28 <body>
29 <p>Test passes if there is no red visible on the page.</p>
30 <div>
31 <span id="span1">Filler Text</span>
32 <span id="span2">Filler Text</span>
33 </div>
34 </body>
35 </html>