Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / elements / styles-4 / svg-style.xhtml
blob0b8012b399e13236869ff4ba5ec5316609a4de03
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <head>
4 <script src="../../../http/tests/inspector/inspector-test.js"></script>
5 <script src="../../../http/tests/inspector/elements-test.js"></script>
6 <script>
8 function test()
10 InspectorTest.selectNodeAndWaitForStyles("main", step1);
12 function step1()
14 InspectorTest.addResult("Main style:");
15 InspectorTest.dumpSelectedElementStyles(true, false, true);
16 InspectorTest.completeTest();
19 </script>
20 </head>
22 <body onload="runTest()">
23 <p>
24 Tests that svg:style does not crash when the related element is inspected.
25 </p>
27 <svg:svg xmlns:svg="http://www.w3.org/2000/svg" version="1.1">
28 <svg:defs>
29 <svg:style type="text/css">
30 rect {fill: red}
31 </svg:style>
32 </svg:defs>
33 <svg:rect id="main" width="100" height="100"/>
34 </svg:svg>
35 </body>
36 </html>