| OLD | NEW |
| (Empty) |
| 1 <html xmlns="http://www.w3.org/1999/xhtml"> | |
| 2 <head> | |
| 3 | |
| 4 <script src="../../../http/tests/inspector/inspector-test.js"></script> | |
| 5 <script src="../../../http/tests/inspector/elements-test.js"></script> | |
| 6 <script> | |
| 7 | |
| 8 function test() | |
| 9 { | |
| 10 InspectorTest.selectNodeAndWaitForStyles("main", step1); | |
| 11 | |
| 12 function step1() | |
| 13 { | |
| 14 InspectorTest.addResult("Main style:"); | |
| 15 InspectorTest.dumpSelectedElementStyles(true, false, true); | |
| 16 InspectorTest.completeTest(); | |
| 17 } | |
| 18 } | |
| 19 </script> | |
| 20 </head> | |
| 21 | |
| 22 <body onload="runTest()"> | |
| 23 <p> | |
| 24 Tests that svg:style does not crash when the related element is inspected. | |
| 25 </p> | |
| 26 | |
| 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> | |
| OLD | NEW |