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_any_dynamic.html   Sprache: HTML

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


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

<head>
  <title>Test for Bug 544834</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
  <style type="text/css">

  :-moz-any(#display, #display2) { text-decoration-line: underline }
  p:-moz-any([foo], [bar]) { z-index: 17 }

  </style>
</head>
<body onload="run()">
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=544834">Mozilla Bug 544834</a>
<p id="display" style="position:absolute"></p>
<pre id="test">
<script type="application/javascript">

/**
 * Test for Bug 544834
 *
 * In particular, test that we go through :-moz-any() in AddRule.
 */

function run()
{
  var p = document.getElementById("display");
  var cs = getComputedStyle(p, "");
  is(cs.textDecorationLine, "underline""should match first rule");
  is(cs.zIndex, "auto""should not match second rule");
  p.removeAttribute("id");
  is(cs.textDecorationLine, "none""should not match first rule");
  is(cs.zIndex, "auto""should not match second rule");
  p.setAttribute("foo""v");
  is(cs.textDecorationLine, "none""should not match first rule");
  is(cs.zIndex, "17""should match second rule");
  SimpleTest.finish();
}

SimpleTest.waitForExplicitFinish();

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

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

¤ Dauer der Verarbeitung: 0.12 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.