Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/events/test/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 954 B image not shown  

Quelle  test_focus_abspos.html

  Sprache: HTML
 

 products/Sources/formale Sprachen/C/Firefox/dom/events/test/test_focus_abspos.html


<!doctype html>
<title>Test for bug 1424633: clicking on an oof descendant focus its focusable ancestor</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/tests/SimpleTest/EventUtils.js"></script>
<style>
  #focusable {
    width: 100px;
    height: 100px;
    background-color: blue;
  }
  #oof {
    background-color: green;
    position: absolute;
    top: 25px;
  }
</style>
<div tabindex="0" id="focusable">
  <span id="oof">Absolute</span>
</div>
<script>
window.onload = function() {
  async_test(function(t) {
    document.body.offsetTop;
    setTimeout(t.step_func_done(function() {
      let span = document.querySelector("#oof");
      synthesizeMouseAtCenter(span, {type: "mousedown"});
      assert_equals(document.activeElement, document.querySelector("#focusable"));
    }), 0);
  }, "Clicking on an abspos descendant focus its focusable ancestor");
}
</script>

Messung V0.5 in Prozent
C=91 H=95 G=92

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-08-25) ¤

*© Formatika GbR, Deutschland






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.