commit-queue@webkit.org | 6592deb | 2014-12-02 10:50:11 +0000 | [diff] [blame] | 1 | <!doctype html> |
| 2 | <head> |
| 3 | <script src="../../resources/js-test-pre.js"></script> |
| 4 | <script> |
| 5 | if (window.testRunner) |
| 6 | testRunner.dumpAsText(); |
| 7 | </script> |
| 8 | </head> |
| 9 | <body> |
| 10 | <div id="console"></div> |
| 11 | <svg x="0px" y="0px" width="400px" height="300px"> |
| 12 | <defs id="svg-defs"></defs> |
| 13 | <rect fill="url(#pattern)" height="148" width="259" y="1" x="1" stroke="#000000" /> |
| 14 | </svg> |
| 15 | <script> |
| 16 | var defs = document.getElementById('svg-defs'); |
| 17 | |
| 18 | var newPattern = '<pattern id="svg-pattern" width="259" height="148" patternUnits="userSpaceOnUse"><path d="M 0 0 L 259 0 259 148 0 148 z" stroke="#fff" stroke-width="1" fill="#00ff00"></path></pattern>'; |
| 19 | |
| 20 | defs.innerHTML = newPattern; |
| 21 | |
| 22 | var verify = document.getElementById('svg-pattern'); |
| 23 | testPassed(verify.innerHTML); |
| 24 | </script> |
| 25 | </body> |