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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/overflow/updating-scrolling-container-and-content.html

Issue 1992303002: Test pixel results for repaint tests changing scroll (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
3 <script> 3 <script>
4 function repaintTest() { 4 function repaintTest() {
5 document.getElementById('container').style.color = "green"; 5 document.getElementById('container').style.color = "green";
6 } 6 }
7 onload = function() { 7 onload = function() {
8 document.getElementById('container').scrollTop = 50; 8 document.getElementById('container').scrollTop = 50;
9 runRepaintTest(); 9 runRepaintAndPixelTest();
10 }; 10 };
11 </script> 11 </script>
12 <style> 12 <style>
13 #container { 13 #container {
14 overflow: scroll; 14 overflow: scroll;
15 width: 200px; 15 width: 200px;
16 height: 200px; 16 height: 200px;
17 } 17 }
18 </style> 18 </style>
19 <div style="height: 100px"> 19 <div style="height: 100px">
20 Tests invalidation of scrolling container and contents on change of style which affects also the contents. 20 Tests invalidation of scrolling container and contents on change of style which affects also the contents.
21 Passes if the content text is green, and the whole content layer (if composited scrolling) is invalidated. 21 Passes if the content text is green, and the whole content layer (if composited scrolling) is invalidated.
22 </div> 22 </div>
23 <div id="container"> 23 <div id="container">
24 CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>C ONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT 24 CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>C ONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT
25 </div> 25 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698