is(document.elementFromPoint(0, 0), $("down"), "document.elementFromPoint not respecting scrolling?");
is(document.elementFromPoint(200, 200), null, "should have returned null for a not-visible point");
is(document.elementFromPoint(3, -5), null, "should have returned null for a not-visible point");
}
</script>
</head> <!-- This page is loaded in a 200px-square iframe scrolled to #down. -->
<body>
<divstyle="height: 150px; background: lightblue;">first</div>
<div id="down"style="height: 250px; background: lightgreen;">second</div>
</body>
</html>
Messung V0.5
¤ Dauer der Verarbeitung: 0.25 Sekunden
(vorverarbeitet)
¤
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.