// Change an existing property...
await setProperty(elementStyle, 0, "color", "black");
// Create a new property
await setProperty(elementStyle, 1, "background-color", "green");
// Create a new property and then change it immediately.
await setProperty(elementStyle, 2, "border", "1px solid black");
await setProperty(elementStyle, 2, "border", "2px solid black");
is(elementStyle.cssText, "color: black; background-color: green; border: 2px solid black;", "Should have expected cssText");
is(elementStyle.cssText, localNode.style.cssText, "Local node and style front match.");
// Remove all the properties
await removeProperty(elementStyle, 0, "color");
await removeProperty(elementStyle, 0, "background-color");
await removeProperty(elementStyle, 0, "border");
is(elementStyle.cssText, "", "Should have expected cssText");
is(elementStyle.cssText, localNode.style.cssText, "Local node and style front match.");
¤ 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.0.15Bemerkung:
(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 ist noch experimentell.