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

Side by Side Diff: third_party/WebKit/LayoutTests/csspaint/background-image-multiple.html

Issue 1866623002: Hook up CSSPaintValue::image to CSS Paint API callback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments + rebase. 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/csspaint/background-image-multiple-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 <head>
4 <script src="../resources/run-after-layout-and-paint.js"></script>
5 <script src="resources/test-runner-paint-worklet.js"></script>
6 <style>
7 #output {
8 width: 100px;
9 height: 100px;
10 background-image: paint(n0), paint(n1), paint(n2);
11 }
12 </style>
13 </head>
14 <body>
15 <div id="output"></div>
16
17 <script id="code" type="text/worklet">
18 var colors = ['red', 'green', 'blue'];
19
20 for (let i = 0; i < 3; i++) {
21 registerPaint('n' + i, class {
22 paint(ctx, geom) {
23 ctx.fillStyle = colors[i];
24 ctx.fillRect(i * 20, i * 20, 40, 40);
25 }
26 });
27 }
28 </script>
29
30 <script>
31 importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('c ode').textContent);
32 </script>
33 </body>
34 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/csspaint/background-image-multiple-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698