Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/layout/style/test/chrome/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  test_bug1346623.html   Sprache: HTML

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


<!DOCTYPE HTML>
<html>
<head>
  <title>Test for bug 1346623</title>
  <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
  <script src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
  <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
</head>
<body onload="startTest();">
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1346623">Mozilla Bug 1346623</a>
<div id="display">

</div>
<pre id="test">
<script type="application/javascript">

var winUtils = window.windowUtils;

function startTest() {
  // load some styles at the agent level
  var css = `
    #ac-parent { color: green; }
    #ac-child.abc { }
  `;
  var sheetURL = "data:text/css," + encodeURIComponent(css);
  winUtils.loadSheetUsingURIString(sheetURL, winUtils.AGENT_SHEET);

  // add canvas anonymous content
  var bq = document.createElement("blockquote");
  bq.id = "ac-parent";
  bq.textContent = "This blockquote text should be green.";
  var div = document.createElement("div");
  div.id = "ac-child";
  div.textContent = " This div text should be green.";
  bq.appendChild(div);
  var ac = document.insertAnonymousContent();
  ac.root.appendChild(bq);
  document.body.offsetWidth;

  is(getComputedStyle(div).color, "rgb(0, 128, 0)",
     "color before reframing");

  // reframe the root
  document.documentElement.style.display = "flex";
  document.body.offsetWidth;

  // restyle the div
  div.className = "abc";
  document.body.offsetWidth;

  is(getComputedStyle(div).color, "rgb(0, 128, 0)",
     "color after reframing");
  SimpleTest.finish();
}

SimpleTest.waitForExplicitFinish();
</script>
</pre>
</body>
</html>

Messung V0.5
C=94 H=87 G=90

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

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.