Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / text-overflow-ellipsis-vertical-hittest.html
blobc6cdb2cd706b922db7edd04ebfcbbd851c1080de
1 <html><head>
2 <style>
3 .ellipsis {
4 -webkit-writing-mode: vertical-rl;
5 text-overflow: ellipsis;
6 overflow: hidden;
7 white-space: nowrap;
8 border: solid 1px red;
9 height: 200px;
10 width: 200px;
12 </style>
13 </head>
14 <body><div id="container" class="ellipsis"><span id="target">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. </span>
15 </div>
16 <div id="result"></div>
17 <script>
18 function test()
20 var target = document.getElementById("target");
21 var finished = false;
22 target.onclick = function() {
23 var result = document.getElementById("result");
24 result.innerHTML += "clicked<br>";
25 if (window.testRunner && finished) {
26 testRunner.dumpAsText();
27 testRunner.notifyDone();
30 if (window.testRunner) {
31 testRunner.waitUntilDone();
33 if (window.eventSender) {
34 var testEle = document.getElementById("container");
35 eventSender.mouseMoveTo(testEle.offsetLeft + testEle.offsetWidth - 10, testEle.offsetTop + testEle.offsetHeight - 10);
36 eventSender.mouseDown();
37 eventSender.mouseUp();
38 eventSender.mouseMoveTo(testEle.offsetLeft + testEle.offsetWidth - 10, testEle.offsetTop + 10);
39 finished = true;
40 eventSender.mouseDown();
41 eventSender.mouseUp();
44 window.onload = test;
45 </script>
46 </body></html>