Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Firefox/layout/reftests/bugs/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 267 B image not shown  

Quelle  1524480-1.html   Sprache: unbekannt

 
<!doctype html>
<html class="reftest-wait">
<meta charset=utf-8>
<style>
div {
  display: none;
  width: 100px;
  height: 100px;
  background: blue;
}
</style>
<div id=div></div>
<script>
async function test() {
  const animation = div.animate({ transform: ['none''none'] }, 1000);
  animation.cancel();

  await waitForFrame();

  div.style.display = 'block';

  await waitForFrame();
  await waitForFrame();

  animation.play();
  await animation.finished;

  document.documentElement.className = "";
}

function waitForFrame() {
  return new Promise(resolve => requestAnimationFrame(resolve));
}

test();
</script>
</html>

Messung V0.5
C=100 H=100 G=100

[ Dauer der Verarbeitung: 0.3 Sekunden  (vorverarbeitet)  ]