c544-valgn-002

vertical-align

WeasyPrint

This browser

Flags
ahem, image, interact

Source

 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</title>
 5   <meta name="flags" content="ahem image interact">
 6   <link rel="help" href="http://www.w3.org/TR/REC-CSS1#vertical-align">
 7   <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html">
 8   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
 9   <style type="text/css">
10    p {font-size: 12pt;}
11    p.example { font: 15px/1 Ahem; color: blue; background: white url(support/square-white.png); border: 1px solid silver; padding: 0.5em; margin: 1em; }
12    .no {color: silver;}
13    big {font-size: 20px;}
14    small {font-size: 10px;}
15    .ttopalign {vertical-align: text-top;}
16   </style>
17   <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#leading" title="10.8.1 Leading and half-leading">
18  </head>
19  <body>
20   <p class="explain">
21    Change your window size. However the lines wrap, the blue
22    rectanglues should always have their tops on the same alignment as
23    other blue rectangles on the line.
24   </p>
25   <p class="example">
26    xxx
27    <img src="support/swatch-blue.png" alt="[Image]" height="30" class="ttopalign">
28    <span class="no" style="font-size: 250%;">xxx</span>
29    <img src="support/swatch-blue.png" alt="[Image]" height="50" class="ttopalign">
30    <big class="no">xxx</big>
31    <img src="support/swatch-blue.png" alt="[Image]" height="10" class="ttopalign">
32    <small class="no">xxx</small>
33    <img src="support/swatch-blue.png" alt="[Image]" height="20" class="ttopalign">
34    xxx
35    <img src="support/swatch-blue.png" alt="[Image]" height="65" class="ttopalign">
36    <span class="no" style="font-size: 2em;">xxx</span>
37    <img src="support/swatch-blue.png" alt="[Image]" height="35" class="ttopalign">
38    xxx
39    <img src="support/swatch-blue.png" alt="[Image]" height="30" class="ttopalign">
40    <span class="no" style="font-size: 150%;">xxx <span style="font-size: 250%;">xxx</span> xxx</span>
41    <img src="support/swatch-blue.png" alt="[Image]" height="50" class="ttopalign">
42    <small class="no">xxx</small>
43    <img src="support/swatch-blue.png" alt="[Image]" height="15" class="ttopalign">
44    <big class="no">xxx</big>
45    <img src="support/swatch-blue.png" alt="[Image]" height="90" class="ttopalign">
46    xxx
47   </p>
48  </body>
49 </html>