1
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN">
4 <title>CSS
2.1 Test Suite: vertical-align
</title>
5 <script src=
"../resources/ahem.js"></script>
6 <style type=
"text/css">
8 p
.example
{ font: 15px/1 Ahem
; color: blue
; background: white url
(support
/square-white
.png
); border: 1px solid silver
; padding: 0.5em; margin: 1em; }
10 big
{font-size: 20px;}
11 small
{font-size: 10px;}
12 .topalign {vertical-align: top
;}
14 <link rel=
"help" href=
"http://www.w3.org/TR/CSS21/visudet.html#q26" title=
"10.8.1 Leading and half-leading">
18 Change your window size. However the lines wrap, the blue
19 rectanglues should always have their tops on the same alignment as
20 other blue rectangles on the line.
23 <span class=
"topalign">xxx
</span>
24 <img alt=
"[Image]" src=
"support/swatch-blue.png" class=
"topalign" height=
"10">
25 <span style=
"font-size: 250%;" class=
"topalign">xxx
</span>
26 <img alt=
"[Image]" src=
"support/swatch-blue.png" class=
"topalign" height=
"10">
27 <span class=
"topalign">xxx
</span>
28 <img alt=
"[Image]" src=
"support/swatch-blue.png" class=
"topalign" height=
"10">
29 <span class=
"topalign">xxx
</span>
30 <img alt=
"[Image]" src=
"support/swatch-blue.png" class=
"topalign" height=
"10">
31 <big class=
"topalign">xxx
</big>
32 <img alt=
"[Image]" src=
"support/swatch-blue.png" class=
"topalign" height=
"20">
33 <span class=
"topalign">xxx
</span>
34 <img alt=
"[Image]" src=
"support/swatch-blue.png" class=
"topalign" height=
"65">
35 <span class=
"topalign">xxx
</span>
36 <img alt=
"[Image]" src=
"support/swatch-blue.png" class=
"topalign" height=
"35">
37 <span style=
"font-size: 2em;" class=
"topalign">xxx
</span>
38 <img alt=
"[Image]" src=
"support/swatch-blue.png" class=
"topalign" height=
"50">
39 <span class=
"topalign">xxx
</span>
40 <img alt=
"[Image]" src=
"support/swatch-blue.png" class=
"topalign" height=
"15">
41 <big class=
"topalign">xxx
</big>
42 <img alt=
"[Image]" src=
"support/swatch-blue.png" class=
"topalign" height=
"90">