/** Test for Bug 391034 **/
function getComp(id) {
return document.defaultView.getComputedStyle($(id));
}
is(getComp("one").top, "-" + getComp("width-ref2").width, "Incorrect computed top offset if specified in ch")
is(getComp("one").right, "-" + getComp("width-ref").width, "Incorrect computed right offset if specified in ch")
is(getComp("one").bottom, getComp("width-ref2").width, "Incorrect computed bottom offset if specified in ch")
is(getComp("one").left, getComp("width-ref").width, "Incorrect computed left offset if specified in ch")
is(getComp("two").top, "-16px", "Incorrect computed top offset if specified in %")
is(getComp("two").right, "-9px", "Incorrect computed right offset if specified in %")
is(getComp("two").bottom, "16px", "Incorrect computed bottom offset if specified in %")
is(getComp("two").left, "9px", "Incorrect computed left offset if specified in %")
is(getComp("three").top, "-6px", "Incorrect computed top offset if specified in %")
is(getComp("three").right, "-10px", "Incorrect computed right offset if specified in %")
is(getComp("three").bottom, "6px", "Incorrect computed bottom offset if specified in %")
is(getComp("three").left, "10px", "Incorrect computed left offset if specified in %")
is(getComp("four").top, "auto", "Incorrect undisplayed computed top offset if specified in %")
is(getComp("four").right, "auto", "Incorrect undisplayed computed right offset if specified in %")
is(getComp("four").bottom, "20%", "Incorrect undisplayed computed bottom offset if specified in %")
is(getComp("four").left, "10%", "Incorrect undisplayed computed left offset if specified in %")
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.