5 background-color: rgb(
100,
0,
0);
10 text-decoration: underline;
14 background-color: green;
19 background-color: black;
28 background-color: blue;
30 text-decoration: invalidvalue;
34 <script src=
"../../../http/tests/inspector/inspector-test.js"></script>
35 <script src=
"../../../http/tests/inspector/elements-test.js"></script>
40 InspectorTest
.selectNodeAndWaitForStylesWithComputed("id1", step1
);
44 InspectorTest
.addResult("==== Computed style for ID1 ====");
45 InspectorTest
.dumpSelectedElementStyles(false, true);
46 InspectorTest
.selectNodeAndWaitForStylesWithComputed("id2", step2
);
51 InspectorTest
.addResult("==== Computed style for ID2 ====");
52 InspectorTest
.dumpSelectedElementStyles(false, true);
53 InspectorTest
.selectNodeAndWaitForStylesWithComputed("id3", step3
);
58 InspectorTest
.addResult("==== Style for ID3 ====");
59 // The button[hidden] style specifies "display: none", which should not be /-- overloaded --/.
60 InspectorTest
.dumpSelectedElementStyles(true, true);
61 InspectorTest
.completeTest();
68 <body onload=
"runTest()">
70 Tests that computed styles expand and allow tracing to style rules.
76 <button id=
"id3" hidden
/>