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