blob: 7c38cb6cf1c166d63a75f4ea1e2ecad6e3fb322a [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="../../resources/js-test-pre.js"></script>
<script>
description("Tests that CSSStyleDeclaration.cssText is not nullable");
var div = document.createElement("div");
var style = div.style;
shouldBeEqualToString("style.cssText", "");
shouldNotThrow("style.cssText = 'margin: 0px;'");
shouldBeEqualToString("style.cssText", "margin: 0px;");
shouldNotThrow("style.cssText = null");
shouldBeEqualToString("style.cssText", "");
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>