tor-browser

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

background-image-gradient-interpolation-repaint.html (779B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3 <meta charset="utf-8">
      4 <title>CSS Backgrounds and Borders: Repaint gradient on color-interpolation-method change</title>
      5 <link rel="help" href="https://drafts.csswg.org/css-color/#color-interpolation-method">
      6 <link rel="help" href="https://drafts.csswg.org/css-images-4/#linear-gradients">
      7 <link rel="match" href="background-image-gradient-interpolation-repaint-ref.html">
      8 <div id="square" style="background-image: linear-gradient(in srgb, yellow, blue); width: 100px; height: 100px"></div>
      9 <script>
     10  requestAnimationFrame(() => {
     11    requestAnimationFrame(() => {
     12      square.style.backgroundImage = "linear-gradient(in oklch, yellow, blue)";
     13      document.documentElement.classList.remove("reftest-wait");
     14    });
     15  });
     16 </script>