Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / overflow / do-not-paint-outline-into-composited-scrolling-contents.html
blob268d7950e27ac0f052c95075334a9542790d896b
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
5 <title>Don't draw outlines into scrolling contents layer</title>
6 <!--
7 If this test succeeds, you should not see the focus ring in the scrolled
8 contents.
9 -->
10 <script src="../../resources/run-after-layout-and-paint.js"></script>
11 <script type="text/javascript" charset="utf-8">
12 if (window.testRunner)
13 window.testRunner.dumpAsTextWithPixelResults();
15 if (window.internals)
16 window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
18 function endTest()
20 var textarea = document.getElementById('text');
21 textarea.scrollTop = 80;
22 if (window.testRunner)
23 window.testRunner.notifyDone();
26 function doTest()
28 var textarea = document.getElementById('text');
29 textarea.focus();
30 textarea.selectionStart = textarea.selectionEnd = 0;
31 runAfterLayoutAndPaint(endTest);
34 runAfterLayoutAndPaint(doTest);
36 if (window.testRunner)
37 testRunner.waitUntilDone();
38 </script>
39 </head>
40 <body>
41 <textarea rows="6" cols="50" id="text">
42 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
44 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
46 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
47 </textarea>
48 </body>
49 </html>