Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!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="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>