| <html class="reftest-wait"> |
| <link rel="match" href="paint2d-image-ref.html"> |
| background-image: paint(image); |
| border-image: url("resources/html5.png"); |
| <script src="/common/reftest-wait.js"></script> |
| <script src="/common/css-paint-tests.js"></script> |
| <script id="code" type="text/worklet"> |
| registerPaint('image', class { |
| static get inputProperties() { return [ 'border-image-source' ]; }; |
| paint(ctx, geom, styleMap) { |
| ctx.drawImage(styleMap.get('border-image-source'), 0, 0); |
| importPaintWorkletAndTerminateTestAfterAsyncPaint(document.getElementById('code').textContent); |