3 <script src=
"../resources/js-test.js"></script>
5 debug("This test checks that -internal-* properties are not exposed to JS.")
9 // This contains the properties along with an accepted value to ensure that we can't
10 // set it from JavaScript.
11 var internalProperties
= { "-internal-marquee-direction": "alternate" };
12 for (var property
in internalProperties
) {
13 debug("Testing " + property
);
14 element
= document
.createElement("foo");
15 document
.body
.appendChild(element
);
16 shouldBeEqualToString("window.getComputedStyle(element).getPropertyValue(property)", "");
17 shouldBeUndefined("element.style[property]");
19 debug("Value after setting " + property
+ " to " + internalProperties
[property
]);
20 element
.style
.setProperty(property
, internalProperties
[property
]);
21 shouldBeUndefined("element.style[property]")
23 document
.body
.removeChild(element
);