OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <head> | 2 <head> |
3 <style> | 3 <style> |
4 html { | 4 html { |
5 font: Ahem 10px; | 5 font: Ahem 10px; |
6 -webkit-font-smoothing: none; | 6 -webkit-font-smoothing: none; |
7 } | 7 } |
8 ::-webkit-scrollbar { | 8 ::-webkit-scrollbar { |
9 width: 13px; | 9 width: 13px; |
10 height: 13px; | 10 height: 13px; |
11 } | 11 } |
12 ::-webkit-scrollbar-track { | 12 ::-webkit-scrollbar-track { |
13 background-color:green; | 13 background-color:green; |
14 } | 14 } |
15 ::-webkit-scrollbar-thumb { | 15 ::-webkit-scrollbar-thumb { |
16 background-color:rgba(128, 128, 128, 0.8); /* Let tickmark shine through */ | 16 background-color:rgba(128, 128, 128, 0.8); /* Let tickmark shine through */ |
17 } | 17 } |
18 </style> | 18 </style> |
19 <script> | 19 <script> |
20 function highlight() | 20 function highlight() |
21 { | 21 { |
22 var range = document.createRange(); | 22 var range = document.createRange(); |
23 var elt = document.getElementById('elt'); | 23 var elt = document.getElementById('elt'); |
24 range.selectNodeContents(elt); | 24 range.selectNodeContents(elt); |
25 if (window.internals) { | 25 if (window.internals) { |
26 window.internals.addTextMatchMarker(range, true); | 26 window.internals.addTextMatchMarker(range, true); |
27 } | 27 } |
28 if (window.testRunner) | 28 if (window.testRunner) |
29 testRunner.dumpAsText(true); | 29 testRunner.dumpAsTextWithPixelResults(); |
30 } | 30 } |
31 </script> | 31 </script> |
32 </head> | 32 </head> |
33 <body onload="highlight();"> | 33 <body onload="highlight();"> |
34 | 34 |
35 <div style="height:600px"></div> | 35 <div style="height:600px"></div> |
36 <span id="elt" style="position:absolute; top:300px"> </span> | 36 <span id="elt" style="position:absolute; top:300px"> </span> |
37 | 37 |
38 </body> | 38 </body> |
39 </html> | 39 </html> |
OLD | NEW |