Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/layout/style/test/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Impressum test_img_src_causing_reflow.html   Sprache: HTML

 

 products/Sources/formale Sprachen/C/Firefox/layout/style/test/test_img_src_causing_reflow.html


<!doctype html>
<meta charset="utf-8">
<title>Test for bug 1787072</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<style>
img {
  width: 100px;
  height: 100px;
  background-color: blue;
}
</style>
<img> <!-- Initially broken -->
<script>
add_task(async function() {
  const utils = SpecialPowers.DOMWindowUtils;
  const img = document.querySelector("img");
  img.getBoundingClientRect();

  let origFramesConstructed = utils.framesConstructed;
  let origFramesReflowed = utils.framesReflowed;

  let error = new Promise(r => img.addEventListener("error", r, { once: true }));

  // Doesn't need to be an actual image.
  img.src = "/some-valid-url";

  img.getBoundingClientRect();
  is(origFramesReflowed, utils.framesReflowed, "Shouldn't have reflowed when going broken -> loading");
  is(origFramesConstructed, utils.framesConstructed, "Shouldn't have reflowed when going broken -> loading");

  await error;

  is(origFramesReflowed, utils.framesReflowed, "Shouldn't have reflowed when going loading -> broken");
  is(origFramesConstructed, utils.framesConstructed, "Shouldn't have reflowed when going loading -> broken");
});
</script>

Messung V0.5 in Prozent
C=98 H=100 G=98

¤ Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.0.10Bemerkung:  (vorverarbeitet am  2026-09-30) ¤

*Bot Zugriff






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.