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

Side by Side Diff: LayoutTests/platform/chromium/compositing/scissor-out-of-viewport.html

Issue 7046081: Merge 88496 - 2011-06-09 James Robinson <jamesr@chromium.org> (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/782/
Patch Set: Created 9 years, 6 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
« no previous file with comments | « no previous file | LayoutTests/platform/chromium/compositing/scissor-out-of-viewport-expected.png » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- This test has a 16px tall div with overflow:hidden set and a child image. When the test loads the div is scrolled out of view. 2 <!-- This test has a 16px tall div with overflow:hidden set and a child image. When the test loads the div is scrolled out of view.
3 The test is a pass if the image does not appear. --> 3 The test is a pass if the image does not appear. -->
4 <body style="overflow:hidden"> 4 <body style="overflow:hidden">
5 <canvas style="position: absolute;"></canvas> 5 <canvas style="position: absolute;"></canvas>
6 <script> 6 <script>
7 document.querySelector("canvas").getContext("2d"); 7 document.querySelector("canvas").getContext("2d");
8 </script> 8 </script>
9 <div style="top:0px; height: 16px; overflow: hidden; position: relative;"> 9 <div style="top:0px; height: 16px; overflow: hidden; position: relative;">
10 <img style="position: absolute; left: -16px;" id="i"></img> 10 <img style="position: absolute; left: -16px;" id="i"></img>
11 </div> 11 </div>
12 <br> 12 <br>
13 <div style="height:2000px"></div> 13 <div style="height:2000px"></div>
14 <script> 14 <script>
15 var can = document.createElement("canvas"); 15 var can = document.createElement("canvas");
16 can.width = can.height = 500; 16 can.width = can.height = 500;
17 var ctx = can.getContext("2d"); 17 var ctx = can.getContext("2d");
18 ctx.fillStyle = "red"; 18 ctx.fillStyle = "red";
19 ctx.fillRect(0, 0, 500, 500); 19 ctx.fillRect(0, 0, 500, 500);
20 document.getElementById("i").src = can.toDataURL(); 20 document.getElementById("i").src = can.toDataURL();
21 document.body.scrollTop = 50; 21 document.body.scrollTop = 50;
22 if (window.layoutTestController) 22 if (window.layoutTestController)
23 layoutTestController.dumpAsText(true); 23 layoutTestController.dumpAsText(true);
24 </script> 24 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/platform/chromium/compositing/scissor-out-of-viewport-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698