tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

geometry-border-image-005.https.html (1097B)


      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="geometry-border-image-005-ref.html">
      5 <style>
      6 html, body { margin: 0; padding: 0; }
      7 .container {
      8  width: 200px;
      9  height: 200px;
     10  border: 36px solid orange;
     11  border-image: paint(foo)               /* source */
     12                1 /                      /* slice */
     13                36px 36px 36px 36px /    /* width */
     14                18px 18px 18px 18px      /* outset */
     15                round;
     16 }
     17 </style>
     18 <script src="/common/reftest-wait.js"></script>
     19 <script src="/common/worklet-reftest.js"></script>
     20 <body>
     21 <div id="target" class="container"></div>
     22 
     23 <script id="code" type="text/worklet">
     24 registerPaint('foo', class {
     25    paint(ctx, geom) {
     26      // Both geom.width and height are 200 + 36 *3 = 308px;
     27      ctx.fillStyle = 'green';
     28      ctx.fillRect(0, 0, geom.width, geom.height);
     29    }
     30 });
     31 </script>
     32 
     33 <script>
     34    importWorkletAndTerminateTestAfterAsyncPaint(CSS.paintWorklet, document.getElementById('code').textContent);
     35 </script>
     36 </body>
     37 </html>