4 <title>inline-block + vertical-align
</title>
6 <style type=
"text/css">
8 border: 1px solid blue
;
11 display: inline-block
;
12 vertical-align: text-bottom
;
13 border: 1px solid green
;
17 <p>The bottom line of the green box should be above the bottom line of the blue box.
</p>
27 <script type=
"text/javascript">
28 if (window
.testRunner
)
29 window
.testRunner
.dumpAsText();
30 var result
= document
.getElementById('result');
31 var outer
= document
.getElementById('outer');
32 var inner
= document
.getElementById('inner');
33 var outerBottom
= outer
.offsetTop
+ outer
.offsetHeight
;
34 var innerBottom
= inner
.offsetTop
+ inner
.offsetHeight
;
35 if (outerBottom
>= innerBottom
) {
36 result
.innerHTML
= 'PASS';
37 result
.style
.color
= 'green';
39 result
.innerHTML
= 'FAIL (outerBottom = ' + outerBottom
+ ', innerBottom = ' + innerBottom
+ ')';
40 result
.style
.color
= 'red';