3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/elements-test.js"></script>
10 InspectorTest.selectNodeAndWaitForStyles("nested", step1);
14 var treeItem = InspectorTest.getElementStylePropertyTreeItem("font-weight");
15 InspectorTest.addResult("Before disable");
16 InspectorTest.dumpSelectedElementStyles(true);
18 InspectorTest.selectNodeAndWaitForStyles("container", step2);
23 var treeItem = InspectorTest.getElementStylePropertyTreeItem("font-weight");
24 treeItem.toggleEnabled({ target: { checked: false } });
25 InspectorTest.selectNodeAndWaitForStyles("nested", step3);
30 InspectorTest.addResult("After disable:");
31 InspectorTest.dumpSelectedElementStyles(true);
32 InspectorTest.completeTest();
38 <body onload="runTest()">
40 Tests that disabling inherited style property does not break further style inspection.
43 <div id="container" style="font-weight:bold">
44 <div id="nested"></div>