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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-opaque-background-compositing.html

Issue 2774903003: Fix the compositing of placeholder canvas backgrounds (Closed)
Patch Set: un-dupe function Created 3 years, 9 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 | third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-opaque-background-compositing-expected.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <style>
4 #myCanvas {
5 width: 100%;
6 height: 100%;
7 background-color: rgb(241, 241, 241);
8 }
9 </style>
10 <head>
11 <link rel="stylesheet" type="text/css" href="canvas.css">
12 </head>
13 <body onload="load()">
14 <canvas id="myCanvas"></canvas>
15 <script>
16 function load() {
17 var myCanvas = document.getElementById("myCanvas");
18 myCanvas.setAttribute("width", 400);
19 myCanvas.setAttribute("height", 400);
20 var offscreenCanvas = myCanvas.transferControlToOffscreen();
21 var offscreen2d = offscreenCanvas.getContext("2d");
22 offscreen2d.clearRect(0, 0, 400, 400);
23 offscreen2d.fillStyle = "green";
24 offscreen2d.fillRect(0, 0, 200, 200);
25 offscreen2d.commit();
26 }
27 </script>
28 </body>
29 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-opaque-background-compositing-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698