2 <script src=
"../../resources/js-test.js"></script>
4 #testDiv a, #testDiv span{display:inline-block;border:
1px solid black;}
5 #testDiv a{width:
30px;height:
30px;text-align:center;line-height:
30px;}
6 #testDiv a span{width:
10px;height:
10px;opacity:
0.9;vertical-align:-
1px;}
8 <div id=testDiv
style=
"position:absolute">
9 <a><span id=test
></span></a>
12 description("Test for https://bugs.webkit.org/show_bug.cgi?id=71996");
13 var test
= document
.getElementById("test");
14 var style
= window
.getComputedStyle(test
);
15 shouldBeEqualToString("style.verticalAlign", "-1px");
16 shouldBe("test.offsetTop", "10");
17 isSuccessfullyParsed();