Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / scrollbars / custom-composited-add-vertical-then-horizontal.html
blobabbd96c40ef8b3fa419dc99a73c17462e920ed0f
1 <!DOCTYPE html>
2 <style>
3 ::-webkit-scrollbar {
4 width: 20px;
5 height: 30px;
6 background-color: blue;
8 </style>
9 <script src="../../resources/run-after-layout-and-paint.js"></script>
10 <script>
11 if (window.testRunner) {
12 testRunner.waitUntilDone();
13 testRunner.dumpAsText();
15 runAfterLayoutAndPaint(function() {
16 var content = document.getElementById('content');
17 content.style.height = '1000px';
18 runAfterLayoutAndPaint(function() {
19 content.style.width = '1000px';
20 runAfterLayoutAndPaint(function() {
21 if (window.testRunner)
22 testRunner.notifyDone();
23 });
24 });
25 });
26 </script>
27 Tests adding composited horizontal custom scrollbar then the vertical scrollbar.
28 Passes if no assertion failure.
29 <div style="overflow: auto; width: 500px; height: 500px; backface-visibility: hidden">
30 <div id="content" style="width: 400px; height: 400px"></div>
31 </div>