OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <style> | |
3 div { | |
4 display: block; | |
5 width: 400px; | |
6 height: 100px; | |
7 color: blue; | |
8 } | |
9 #underlineHover:hover { | |
10 text-decoration: underline; | |
11 } | |
12 #underlineNoHover:hover { | |
13 text-decoration: underline; | |
14 } | |
15 </style> | |
16 | |
17 <div id="underlineHover"> | |
18 <span>When</span> <span>hovered, </span><span>there</span> <span>should</span>
<span> be </span> <span>no</span> <span>gaps</span> <span>in</span> <span>the
</span> <span>underline.</span> | |
19 </div> | |
20 | |
21 <div id="underlineNoHover"> | |
22 <span>When</span> <span>not hovered, </span><span>there</span> <span>should</spa
n> <span> be </span> <span>no</span> <span>underlines.</span> | |
23 </div> | |
24 | |
25 <script> | |
26 if (window.testRunner) { | |
27 testRunner.waitUntilDone(); | |
28 if (window.eventSender); | |
29 eventSender.mouseMoveTo(underlineNoHover.offsetLeft + 10, underlineNoHov
er.offsetTop + 10); | |
30 testRunner.layoutAndPaintAsyncThen(function(){ | |
31 if (window.eventSender); | |
32 eventSender.mouseMoveTo(underlineHover.offsetLeft + 10, underlineHov
er.offsetTop + 10); | |
33 testRunner.notifyDone(); | |
34 }); | |
35 } | |
36 </script> | |
OLD | NEW |