blob: 779530eed2858b481d7bbdf44c2f1f701488c3df [file] [log] [blame]
<iframe id="ifr"></iframe>
This tests that modifications to the prototype of CSSStyleDeclaration don't
modify its prototype in another document.
<div id="result"></div>
<script>
if (window.testRunner)
testRunner.dumpAsText();
CSSStyleDeclaration.prototype.foo = "foo";
var win = document.getElementById('ifr').contentWindow;
var result = win.CSSStyleDeclaration.prototype.foo;
if (result)
document.getElementById('result').innerText = "FAIL: expected 'undefined', got '" + result + "'";
else
document.getElementById('result').innerText = 'PASS';
</script>