Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / crash-corner-present.html
blobfc521f25603bf0bb75622409d3c13627fd27580f
1 <!DOCTYPE html>
2 <style>
3 #scrollable {
4 width: 100px;
5 height: 50px;
6 overflow-x: scroll;
9 #scrollable::-webkit-scrollbar {
10 background-color: blue;
11 height: 50px;
14 #scrollable::-webkit-scrollbar:corner-present {
15 background-color: blue;
18 #filler {
19 width: 200px;
21 </style>
22 <script>
23 if (window.testRunner) {
24 testRunner.dumpAsText();
25 testRunner.waitUntilDone();
28 function removeScrollbars() {
29 requestAnimationFrame(function(){
30 scrollable.style.overflow = 'visible';
31 if (window.eventSender)
32 eventSender.mouseUp();
33 if (window.testRunner)
34 testRunner.notifyDone();
35 });
37 </script>
38 <p>Click the blue rectangle below - PASS if no crash.</p>
39 <div id="scrollable" onmousedown="removeScrollbars();">
40 <div id="filler">&nbsp;</div>
41 </div>
42 <script>
43 if (window.eventSender) {
44 eventSender.mouseMoveTo(scrollable.offsetLeft + 1, scrollable.offsetTop + 1);
45 eventSender.mouseDown();
47 </script>