blob: db311ea14eb5901df8e183aaa06761964cecba32 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<p id="description"></p>
<div id="console"></div>
<script>
description("This test checks that the type, media and title properties on an SVGStyleElement reflect the corresponding attributes.");
var style = document.createElementNS("http://www.w3.org/2000/svg", "style");
shouldBeEqualToString("style.type", "text/css");
shouldBeEqualToString("style.media", "all");
shouldBeEqualToString("style.title", "");
style.type = "text/x-something-else";
shouldBeEqualToString("style.type", "text/x-something-else");
style.media = "print";
shouldBeEqualToString("style.media", "print");
style.title = "My Style Sheet";
shouldBeEqualToString("style.title", "My Style Sheet");
successfullyParsed = true;
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>