Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(324)

Side by Side Diff: LayoutTests/fast/repaint/absolute-position-changed.html

Issue 1318603005: Revert of Replace pinch scrollbars with regular scrollbars. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <link rel="stylesheet" href="resources/default.css"> 3 <link rel="stylesheet" href="resources/default.css">
4 <style> 4 <style>
5 ::-webkit-scrollbar {
6 width: 0px;
7 height: 0px;
8 }
9 html { 5 html {
10 overflow: scroll; 6 overflow: scroll;
11 } 7 }
12 </style> 8 </style>
13 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip t> 9 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip t>
14 <script type="text/javascript"> 10 <script type="text/javascript">
15 window.enablePixelTesting = true; 11 window.enablePixelTesting = true;
16 window.onload = function() { 12 window.onload = function() {
17 window.scrollTo(0, 500); 13 window.scrollTo(0, 500);
18 runRepaintTest(); 14 runRepaintTest();
19 }; 15 };
20 16
21 function repaintTest() 17 function repaintTest()
22 { 18 {
23 document.getElementById('absoluteDiv').style.top = '700px'; 19 document.getElementById('absoluteDiv').style.top = '700px';
24 } 20 }
25 </script> 21 </script>
26 </head> 22 </head>
27 <body style="height:2000px;"> 23 <body style="height:2000px;">
28 <!-- You should see 1 green rectangle in the output and no red. --> 24 <!-- You should see 1 green rectangle in the output and no red. -->
29 <div style="top: 200px; left: 100px;" class="fixed red"></div> 25 <div style="top: 200px; left: 100px;" class="fixed red"></div>
30 <div id="absoluteDiv" style="top: 500px; left:100px;" class="absolute green" ></div> 26 <div id="absoluteDiv" style="top: 500px; left:100px;" class="absolute green" ></div>
31 </body> 27 </body>
32 </html> 28 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698