background-repeat-x.https.html (771B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <link rel="help" href="https://drafts.css-houdini.org/css-paint-api/"> 4 <link rel="match" href="background-repeat-x-ref.html"> 5 <style> 6 .container { 7 width: 200px; 8 height: 200px; 9 } 10 #foo { 11 background: paint(foo) top left/50% 50% repeat-x; 12 } 13 </style> 14 <script src="/common/reftest-wait.js"></script> 15 <script src="/common/worklet-reftest.js"></script> 16 <body> 17 <div id="foo" class="container"></div> 18 19 <script id="code" type="text/worklet"> 20 registerPaint('foo', class { 21 paint(ctx, geom) { 22 ctx.fillStyle = 'green'; 23 ctx.fillRect(0, 0, 50, 50); 24 } 25 }); 26 </script> 27 28 <script> 29 importWorkletAndTerminateTestAfterAsyncPaint(CSS.paintWorklet, document.getElementById('code').textContent); 30 </script> 31 </body> 32 </html>