blob: c6822dec4cbe6f16126f1ef141a7eafc2765a6ff [file] [log] [blame]
<!DOCTYPE html>
<html class="reftest-wait">
<link rel="help" href="https://drafts.csswg.org/css-backgrounds-3/#background-color">
<link rel="match" href="two-background-color-animation-diff-length2-ref.html">
<style>
.container {
width: 100px;
height: 100px;
background-color: green;
animation: bgcolor2 10s, bgcolor1 2s 1s;
}
@keyframes bgcolor1 {
0% { background-color: rgb(0, 200, 0); }
100% { background-color: rgb(200, 0, 0); }
}
@keyframes bgcolor2 {
0% { background-color: rgb(0, 0, 199); }
100% { background-color: rgb(0, 0, 200); }
}
</style>
<script src="/common/reftest-wait.js"></script>
<script src="../../../web-animations/testcommon.js"></script>
<body>
<div class="container"></div>
<script>
// This test ensures that when there are two animations where one of them has
// animation delays, we show the right color when the delayed animation is not
// started yet.
const animations = document.getAnimations();
Promise.all([animations[0].ready, animations[1].ready]).then(() => {
takeScreenshot();
});
</script>
</body>
</html>