/**
* 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();
}
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.