OLD | NEW |
(Empty) | |
| 1 <?xml version="1.0" encoding="UTF-8"?> |
| 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1
.1/DTD/svg11.dtd"> |
| 3 <svg version="1.1" viewBox="0 0 800 600" xmlns="http://www.w3.org/2000/svg" widt
h="600" height="500"> |
| 4 <style> |
| 5 [viewBox] { background-color: green; } |
| 6 [viewbox], [VIEWBOX] { background-color: red; } |
| 7 </style> |
| 8 <text y="20">You should see the word PASS below and the background should be gre
en.</text> |
| 9 <text y="40" id="result">FAIL</text> |
| 10 <script> |
| 11 if (window.testRunner) |
| 12 testRunner.dumpAsText(); |
| 13 |
| 14 if (getComputedStyle(document.querySelector("svg")).backgroundColor == "rgb(
0, 128, 0)") |
| 15 document.getElementById("result").firstChild.data = "PASS"; |
| 16 </script> |
| 17 </svg> |
OLD | NEW |