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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/invalidate-invisible-element.html

Issue 1994373002: Convert some repaint tests into ref tests (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="resources/text-based-repaint.js" type="text/javascript"></scrip t> 4 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip t>
5 <script type="text/javascript"> 5 <script type="text/javascript">
6 window.onload = function() { 6 window.onload = function() {
7 runRepaintTest(); 7 runRepaintAndPixelTest();
8 }; 8 };
9 9
10 function repaintTest() { 10 function repaintTest() {
11 var target = document.getElementById('target'); 11 var target = document.getElementById('target');
12 target.style.visibility = 'visible'; 12 target.style.visibility = 'visible';
13 getComputedStyle(target).color; 13 getComputedStyle(target).color;
14 target.style.top = '300px'; 14 target.style.top = '300px';
15 } 15 }
16 </script> 16 </script>
17 </head> 17 </head>
18 <body> 18 <body>
19 <div id="target" 19 <div id="target"
20 style="visibility:hidden; 20 style="visibility:hidden;
21 position: absolute; 21 position: absolute;
22 top: 200px; left: 200px; 22 top: 200px; left: 200px;
23 width: 200px; height: 200px; 23 width: 200px; height: 200px;
24 background-color: redl "></div> 24 background-color: redl "></div>
25 </body> 25 </body>
26 </html> 26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698