blob: 7c38cb6cf1c166d63a75f4ea1e2ecad6e3fb322a [file] [log] [blame]
cdumez@apple.com84541df2016-07-26 22:38:13 +00001<!DOCTYPE html>
2<html>
3<body>
4<script src="../../resources/js-test-pre.js"></script>
5<script>
6description("Tests that CSSStyleDeclaration.cssText is not nullable");
7
8var div = document.createElement("div");
9var style = div.style;
10shouldBeEqualToString("style.cssText", "");
11shouldNotThrow("style.cssText = 'margin: 0px;'");
12shouldBeEqualToString("style.cssText", "margin: 0px;");
13shouldNotThrow("style.cssText = null");
14shouldBeEqualToString("style.cssText", "");
15</script>
16<script src="../../resources/js-test-post.js"></script>
17</body>
18</html>