blob: 48aabbdef64135e276c9cfb48a0333d38ceecd42 [file] [log] [blame]
<html>
<div>DIV</div>
<iframe src="http://localhost:8000/security/resources/cross-origin-getMatchedCSSRules-frame.html"></iframe>
<script>
if (window.testRunner)
{
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
window.onload = function()
{
var cssRules = window.getMatchedCSSRules(document.getElementsByTagName("div")[0], "", false);
if (cssRules)
{
cssRules[0].parentStyleSheet.foo = "FAIL";
window.frames[0].postMessage("done", "*");
}
else
{
alert("PASS");
if (window.testRunner)
testRunner.notifyDone();
}
}
</script>
</html>