OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <body> |
| 3 <script src="../fast/js/resources/js-test-pre.js"></script> |
| 4 <script> |
| 5 debug("This test checks that -internal-* properties are not exposed to JS.") |
| 6 debug(""); |
| 7 debug(""); |
| 8 |
| 9 // This contains the properties along with an accepted value to ensure that we c
an'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 shouldBeNull("window.getComputedStyle(element).getPropertyValue(property)") |
| 17 shouldBeNull("element.style.getPropertyCSSValue(property)") |
| 18 |
| 19 debug("Value after setting " + property + " to " + internalProperties[proper
ty]); |
| 20 element.style.setProperty(property, internalProperties[property]); |
| 21 shouldBeNull("element.style.getPropertyCSSValue(property)") |
| 22 |
| 23 document.body.removeChild(element); |
| 24 debug(""); |
| 25 } |
| 26 </script> |
| 27 <script src="../fast/js/resources/js-test-post.js"></script> |
| 28 </body> |
OLD | NEW |