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

Side by Side Diff: third_party/WebKit/LayoutTests/css3/flexbox/repaint-opacity-change.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 <head> 3 <head>
4 <script src="../../fast/repaint/resources/text-based-repaint.js" type="text/java script"></script> 4 <script src="../../fast/repaint/resources/repaint.js" type="text/javascript"></s cript>
5 <script> 5 <script>
6 function repaintTest() 6 function repaintTest()
7 { 7 {
8 if (window.testRunner) { 8 if (window.testRunner) {
9 var targetElement = document.getElementById('target'); 9 var targetElement = document.getElementById('target');
10 targetElement.style.opacity = '0.5'; 10 targetElement.style.opacity = '0.5';
11 document.body.offsetTop; 11 document.body.offsetTop;
12 targetElement.style.opacity = '1'; 12 targetElement.style.opacity = '1';
13 document.body.offsetTop; 13 document.body.offsetTop;
14 } 14 }
(...skipping 10 matching lines...) Expand all
25 flex-direction: column; 25 flex-direction: column;
26 } 26 }
27 </style> 27 </style>
28 </head> 28 </head>
29 <body onload="runRepaintTest()"> 29 <body onload="runRepaintTest()">
30 <div class="flex"> 30 <div class="flex">
31 <div class="item" id="target"></div> 31 <div class="item" id="target"></div>
32 <div class="item"></div> 32 <div class="item"></div>
33 </div> 33 </div>
34 </body> 34 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698