<!DOCTYPE html><htmlclass="reftest-wait"><metaname="assert"content="This should resume the animation after unhiding the iframe."><metaname="fuzzy"content="0-25;0-50"><title>CSS Test (Animations): Unhiding iframe visibility should restart animation. </title><linkrel="help"href="https://bugs.chromium.org/p/chromium/issues/detail?id=616270"><linkrel="match"href="toggle-animated-iframe-visibility-ref.html"><scriptsrc="/common/reftest-wait.js"></script><divid="container"></div><divid="log"></div><script>varcontainer;varblock;varlogDiv;functionverifyVisibility(expected_visibility,message){if(getComputedStyle(block).visibility!==expected_visibility)logDiv.innerHTML=`FAIL: ${message}`;}asyncfunctionrunTest(){varanimation=block.animate({transform:['rotate(0deg)','rotate(180deg)']},{duration:10000000,delay:-5000000,easing:'cubic-bezier(0, 1, 1, 0)'});awaitanimation.ready;container.style.visibility='hidden';requestAnimationFrame(()=>{verifyVisibility('hidden','style.visibility should be hidden');container.style.visibility='visible';requestAnimationFrame(()=>{verifyVisibility('visible','style.visiblity should be visible');takeScreenshot();});});}window.onload=function(){logDiv=document.getElementById('log');container=document.getElementById('container');block=document.createElement('iframe');container.appendChild(block);block.onload=runTest;block.src='resources/block.html';};</script>