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

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

Issue 2774903003: Fix the compositing of placeholder canvas backgrounds (Closed)
Patch Set: fix comments Created 3 years, 8 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
(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 ctx = myCanvas.getContext("2d");
21 offscreen2d.clearRect(0, 0, 400, 400);
22 offscreen2d.fillStyle = "green";
23 offscreen2d.fillRect(0, 0, 200, 200);
24 offscreen2d.commit();
25 }
26 </script>
27 </body>
28 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698