1 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
4 <title>CSS Test: Vertical Alignment boxes: replaced elements
</title>
5 <script src=
"../../resources/ahem.js"></script>
6 <link rel=
"author" title=
"Elika J. Etemad" href=
"http://fantasai.inkedblade.net/contact">
7 <link rel=
"help" href=
"http://www.w3.org/TR/CSS21/visudet.html#line-height">
8 <meta name=
"flags" content=
"ahem image">
9 <meta name=
"assert" content=
"Vertical alignment aligns the margin box of inline replaced elements.">
10 <style type=
"text/css">
13 font: 40px/60px Ahem
; color: blue
;
21 vertical-align: -28px;
23 border-top: 10px solid
;
29 border-bottom: 10px solid
;
33 vertical-align: text-bottom
;
35 border-bottom: 15px solid
;
39 vertical-align: text-top
;
41 border-top: 10px solid
;
45 vertical-align: middle
;
47 border-top: 10px solid
;
51 vertical-align: baseline
;
53 border-bottom: 15px solid
;
63 <p>There should be a single blue rectangle with perfectly straight sides below.
</p>
65 <img id=
"control" src=
"support/swatch-blue.png" alt=
"FAIL"><!--
66 --><img id=
"baseline" src=
"support/swatch-blue.png" alt=
"FAIL"><!--
67 --><img id=
"middle" src=
"support/swatch-blue.png" alt=
"FAIL"><!--
68 --><img id=
"text-top" src=
"support/swatch-blue.png" alt=
"FAIL"><!--
69 --><img id=
"text-bottom" src=
"support/swatch-blue.png" alt=
"FAIL"><!--
70 --><img id=
"percent" src=
"support/swatch-blue.png" alt=
"FAIL"><!--
71 --><img id=
"length" src=
"support/swatch-blue.png" alt=
"FAIL">