Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / elements / styles-2 / lazy-computed-style.html
blob1454133dd24ad17be0036dc51cab1414697183ed
1 <html>
2 <head>
3 <style>
5 #inspected {
6 background-color: green;
7 font-family: Times;
10 #inspected {
11 background-color: black;
12 font-family: Courier;
15 #inspected {
16 background: gray;
19 </style>
20 <script src="../../../http/tests/inspector/inspector-test.js"></script>
21 <script src="../../../http/tests/inspector/elements-test.js"></script>
22 <script>
24 function test()
26 InspectorTest.selectNodeAndWaitForStyles("inspected", step1);
28 function step1()
30 InspectorTest.addResult("==== All styles (should be no computed) ====");
31 InspectorTest.dumpSelectedElementStyles(false, false);
32 InspectorTest.computedStyleWidget().doUpdate().then(step2);
35 function step2()
37 InspectorTest.addResult("==== All styles (computed should be there) ====");
38 InspectorTest.dumpSelectedElementStyles(false, false);
39 InspectorTest.completeTest();
42 </script>
43 </head>
45 <body onload="runTest()">
46 <p>
47 Tests that computed styles expand and allow tracing to style rules.
48 </p>
50 <div id="inspected">
51 </div>
53 </body>
54 </html>