4 <style type="text/css" media="screen">
5 #main { background:blue; }
8 <script src="../../http/tests/inspector/inspector-test.js"></script>
9 <script src="../../http/tests/inspector/elements-test.js"></script>
14 var iframe = document.createElement("iframe");
15 iframe.src = "resources/styles-iframe-data.html";
16 document.getElementById("main").appendChild(iframe);
21 InspectorTest.evaluateInPage("loadIframe()");
22 InspectorTest.addConsoleSniffer(step0);
26 InspectorTest.selectNodeAndWaitForStyles("main", step1);
31 InspectorTest.addResult("Main frame style:");
32 InspectorTest.dumpSelectedElementStyles(true, false, true);
33 InspectorTest.selectNodeAndWaitForStyles("iframeBody", step2);
38 InspectorTest.addResult("iframe style:");
39 InspectorTest.dumpSelectedElementStyles(true, false, true);
40 InspectorTest.completeTest();
46 <body onload="runTest()">
48 Tests that proper (and different) styles are returned for body elements of main document and iframe.