<!DOCTYPE html><title>Layout Instability: visibility:hidden</title><linkrel="help"href="https://wicg.github.io/layout-instability/"/><divid="target"style="position: absolute; top: 0; width: 400px; height: 400px; background: blue;"></div><scriptsrc="/resources/testharness.js"></script><scriptsrc="/resources/testharnessreport.js"></script><scriptsrc="resources/util.js"></script><script>promise_test(async()=>{constwatcher=newScoreWatcher;// Wait for the initial render to complete.awaitwaitForAnimationFrames(2);// Shift target and make hidden at the same time. Should not be reported!document.querySelector("#target").style.top='200px';document.querySelector("#target").style.visibility='hidden';awaitwaitForAnimationFrames(2);// No shift should be reported.assert_equals(watcher.score,0);},'visible to hidden');</script>