Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / vertical-align-length-copy-bug.html
blob293191f29616cae535db7c4b82c01b66d4459f84
1 <!DOCTYPE HTML>
2 <script src="../../resources/js-test.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>
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();
18 </script>