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

Quelle  test_bug450191.html   Sprache: HTML

 
 products/sources/formale Sprachen/C/Firefox/layout/style/test/test_bug450191.html


<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=450191
-->

<head>
  <title>Test for Bug 450191</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body onload="run()">
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=450191">Mozilla Bug 450191</a>
<iframe id="display" src="about:blank"></iframe>
<pre id="test">
<script type="application/javascript">

/** Test for Bug 450191 **/

SimpleTest.waitForExplicitFinish();

function run() {
  var iframe = document.getElementById("display");
  var subdoc = iframe.contentDocument;
  var subwin = iframe.contentWindow;

  var doctext = "
div text
table text
"
;

  function subdoc_body_font() {
    return subwin.getComputedStyle(subdoc.body).fontSize;
  }

  function subdoc_cell_font() {
    return subwin.getComputedStyle(subdoc.getElementById("t")).fontSize;
  }

  subdoc.open();
  subdoc.write(doctext);
  subdoc.close();

  is(subdoc_cell_font(), subdoc_body_font(),
        "Quirks style sheet should be applied.");
  
  subdoc.open();
  subdoc.write("" + doctext);
  subdoc.close();

  isnot(subdoc_cell_font(), subdoc_body_font(),
        "Quirks style sheet should NOT be applied.");
  
  subdoc.open();
  subdoc.write(doctext);
  subdoc.close();

  is(subdoc_cell_font(), subdoc_body_font(),
     "Quirks style sheet should be applied.");

  SimpleTest.finish();
}


</script>
</pre>
</body>
</html>

Messung V0.5
C=97 H=96 G=96

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet)  ¤

*© 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.