<script type="application/javascript">
function doTest() {
// Inside list varli = getAccessible("insidelist_item");
testBounds(li);
var [xLI, yLI, widthLI, heightLI] = getBounds(li); var bullet = li.firstChild; var [x, y, width, height] = getBounds(bullet);
is(x, xLI, "Bullet x should match to list item x");
ok(y >= yLI, "Bullet y= " + y + " should be not less than list item y=" + yLI);
ok(width < widthLI, "Bullet width should be lesser list item width");
ok(height <= heightLI, "Bullet height= " + height + " should be not greater than list item height=" + heightLI);
// Outside list li = getAccessible("outsidelist_item"); var [xLIElm, yLIElm, widthLIElm, heightLIElm] = getBoundsForDOMElm(li);
[xLI, yLI, widthLI, heightLI] = getBounds(li);
ok(xLI < xLIElm, "Outside list item x=" + xLI + " should be lesser than list item element x=" + xLIElm);
is(yLI, yLIElm, "Outside list item y should match to list item element y");
ok(widthLI > widthLIElm, "Outside list item width=" + widthLI + " should be greater than list item element width=" + widthLIElm);
ok(heightLI >= Math.trunc(heightLIElm), "Outside list item height=" + heightLI + " should not be less than list item element height=" + heightLIElm);
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.