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

Side by Side Diff: third_party/WebKit/LayoutTests/csspaint/paint2d-fillRect.html

Issue 1834843002: [WIP] Plumbing for paint Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: \o/\o/ Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/csspaint/paint2d-fillRect-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 <style>
6 #output {
7 width: 100px;
8 height: 100px;
9 background-image: paint(green);
10 background-color: red;
11 }
12 </style>
13 </head>
14 <body>
15 <div id="output"></div>
16
17 <script id="code" type="text/worklet">
18 registerPaint('green', class {
19 paint(ctx) {
20 ctx.fillStyle = 'green';
21 ctx.fillRect(0, 0, 100, 100);
22 }
23 });
24 </script>
25
26 <script>
27 if (window.testRunner) {
28 testRunner.waitUntilDone();
29 }
30
31 var blob = new Blob([document.getElementById('code').textContent]);
32 paintWorklet.import(URL.createObjectURL(blob)).then(function() {
33 runAfterLayoutAndPaint(function() {
34 if (window.testRunner) {
35 testRunner.notifyDone();
36 }
37 });
38 });
39 </script>
40 </body>
41 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/csspaint/paint2d-fillRect-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698