blob: 83a7c1779fee4967dfa1c4a216679e7fc4eb8460 [file] [log] [blame]
<!DOCTYPE html>
<body>
<script src="../fast/js/resources/js-test-pre.js"></script>
<script>
debug("This test checks that -internal-* properties are not exposed to JS.")
debug("");
debug("");
// This contains the properties along with an accepted value to ensure that we can't
// set it from JavaScript.
var internalProperties = { "-internal-marquee-direction": "alternate" };
for (var property in internalProperties) {
debug("Testing " + property);
element = document.createElement("foo");
document.body.appendChild(element);
shouldBeNull("window.getComputedStyle(element).getPropertyValue(property)")
shouldBeNull("element.style.getPropertyCSSValue(property)")
debug("Value after setting " + property + " to " + internalProperties[property]);
element.style.setProperty(property, internalProperties[property]);
shouldBeNull("element.style.getPropertyCSSValue(property)")
document.body.removeChild(element);
debug("");
}
</script>
<script src="../fast/js/resources/js-test-post.js"></script>
</body>