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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/positioned-list-offset-change-repaint.html

Issue 1972273002: Let repaint tests test pixels by default (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 <html> 2 <html>
3 <style> 3 <style>
4 ul { 4 ul {
5 width: 978px; 5 width: 978px;
6 position: absolute; 6 position: absolute;
7 left: -2070px; 7 left: -2070px;
8 } 8 }
9 9
10 li { 10 li {
(...skipping 11 matching lines...) Expand all
22 <div>This test checks that moving a positioned element with positioned children invalidates correctly.</div> 22 <div>This test checks that moving a positioned element with positioned children invalidates correctly.</div>
23 <div>The image below should be completely invalidated.</div> 23 <div>The image below should be completely invalidated.</div>
24 <div id="container"> 24 <div id="container">
25 <ul id="list"> 25 <ul id="list">
26 <li> 26 <li>
27 <img src="resources/apple.jpg"> 27 <img src="resources/apple.jpg">
28 </li> 28 </li>
29 </ul> 29 </ul>
30 </div> 30 </div>
31 31
32 <script src="resources/text-based-repaint.js"></script> 32 <script src="resources/repaint.js"></script>
33 <script> 33 <script>
34 function setUp() { 34 function setUp() {
35 var elSlider = document.getElementById("list"); 35 var elSlider = document.getElementById("list");
36 elSlider.style.left = "590px"; 36 elSlider.style.left = "590px";
37 elSlider.offsetLeft; 37 elSlider.offsetLeft;
38 38
39 runRepaintTest(); 39 runRepaintTest();
40 } 40 }
41 41
42 function repaintTest() { 42 function repaintTest() {
43 var elSlider = document.getElementById("list"); 43 var elSlider = document.getElementById("list");
44 elSlider.style.left = "690px"; 44 elSlider.style.left = "690px";
45 }; 45 };
46 46
47 window.addEventListener("load", setUp, false); 47 window.addEventListener("load", setUp, false);
48 </script> 48 </script>
49 </body></html> 49 </body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698