1
0
Fork 0
firefox/testing/web-platform/tests/css/css-backgrounds/background-image-gradient-interpolation-repaint.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

16 lines
779 B
HTML

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