[Web GPU] GPURenderPassEncoder updates: setBlendColor, setViewport, setScissorRect
[WebKit-https.git] / LayoutTests / webanimations / width-and-opacity-separate-animation-yields-no-compositing.html
1 <pre id="results"></pre>
2 <div id="target" style="width: 100px; height: 100px; background-color: black;"></div>
3 <script>
4
5 const opacityAnimation = new Animation(new KeyframeEffect(document.getElementById("target"), [
6     { opacity: 1 },
7     { opacity: 0 }
8 ]));
9 opacityAnimation.startTime = 0;
10 opacityAnimation.effect.updateTiming({ duration : 1000 });
11
12 const widthAnimation = new Animation(new KeyframeEffect(document.getElementById("target"), [
13     { width: "100px" },
14     { width: "200px" }
15 ]));
16 widthAnimation.startTime = 0;
17 widthAnimation.effect.updateTiming({ duration : 1000 });
18
19 testRunner.dumpAsText();
20 document.getElementById("results").innerText = internals.layerTreeAsText(document);
21
22 </script>