/**
* Test that makes sure that we have exposed getters/setters for all the
* various variants of our CSS property names that the spec calls for.
*/
for (var prop in gCSSProperties) { var info = gCSSProperties[prop];
vars = document.createElement("div").style;
if (info.domPropDisabled) {
// Certain properties like -moz-appearance is intentionally hidden from
// CSSStyleProperties.
is(s[info.domProp], undefined, `${prop} should not exist`);
continue;
}
is(s[info.domProp], "", prop + " should not be set yet"); s[info.domProp] = info.initial_values[0];
isnot(s[info.domProp], "", prop + " should now be set");
is(s[prop], s[info.domProp], "Getting " + prop + " via name should work") s = document.createElement("div").style;
is(s[info.domProp], "", prop + " should not be set here either"); s[prop] = info.initial_values[0];
isnot(s[info.prop], "", prop + " should now be set again");
is(s[info.domProp], s[prop], "Setting " + prop + " via name should work");
}
</script>
</pre>
</body>
</html>
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-09-30)
¤
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.