| <!-- |
| Any copyright is dedicated to the Public Domain. |
| http://creativecommons.org/publicdomain/zero/1.0/ |
| --> |
| <svg xmlns="http://www.w3.org/2000/svg" width="700" height="200" viewBox="0 0 700 200"> |
| <g transform="translate(100,100)" style="font: 16px sans-serif; fill: red"> |
| <text>hello</text> |
| </g> |
| <script> |
| function change_object_style() |
| { |
| document.getElementsByTagName("g")[0].style.fill = "green"; |
| document.documentElement.removeAttribute("class"); |
| if (window.testRunner) |
| testRunner.notifyDone(); |
| } |
| if (window.testRunner) |
| testRunner.waitUntilDone(); |
| |
| setTimeout(change_object_style, 100); |
| </script> |
| </svg> |