Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / list-item-pseudo-nocrash.html
blobddf92f74367cdb20e405ae6b34c893c7632403f6
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>List-item + :after pseudo-class</title>
5 <style type="text/css">
6 #anchor {
7 display: block;
9 #anchor:hover {}
10 #anchor:after {
11 content: ".";
12 display: block;
14 span {
15 float: left;
17 </style>
18 <script type="application/javascript">
19 function run() {
20 if (!window.testRunner)
21 return;
23 window.testRunner.dumpAsText();
24 window.testRunner.waitUntilDone();
25 window.eventSender.mouseMoveTo(0, 0);
26 window.setTimeout(hover, 100);
29 function hover() {
30 var element = document.getElementById('text');
31 var x = element.offsetLeft + element.offsetWidth / 2;
32 var y = element.offsetTop + element.offsetHeight / 2;
33 window.eventSender.mouseMoveTo(x, y);
34 window.setTimeout(finalize, 100);
37 function finalize() {
38 window.testRunner.notifyDone();
41 window.addEventListener('load', run, false);
42 </script>
43 </head>
44 <body>
45 <p>This is a test for <a href="https://bugs.webkit.org/show_bug.cgi?id=30944">bug 30944</a>. Passes if it does not crash.</p>
46 <ul>
47 <li>
48 <a id="anchor" href="#"><span id="text">Hover me</span></a>
49 </li>
50 </ul>
51 </body>
52 </html>