1<!DOCTYPE HTML>
2<script src="../js/resources/js-test-pre.js"></script>
3<style>
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;}
7</style>
8<div id=testDiv style="position:absolute">
9<a><span id=test></span></a>
10</div>
11<script>
12description("Test for https://bugs.webkit.org/show_bug.cgi?id=71996");
13var test = document.getElementById("test");
14var style = window.getComputedStyle(test);
15shouldBeEqualToString("style.verticalAlign", "-1px");
16shouldBe("test.offsetTop", "10");
17isSuccessfullyParsed();
18</script>