OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../resources/run-after-display.js"></script> |
| 3 <svg width="100" height="100"> |
| 4 <pattern id="p" patternUnits="objectBoundingBox" width="100" height="100"> |
| 5 <rect width="100" height="100" fill="green"/> |
| 6 </pattern> |
| 7 <line y1="50" x2="100" y2="50" stroke-width="100" stroke="url(#p) red"/> |
| 8 </svg> |
| 9 <script> |
| 10 function changeToUSOU() { |
| 11 document.querySelector('pattern').setAttribute('patternUnits', 'userSpaceOnUse
'); |
| 12 } |
| 13 |
| 14 if (window.testRunner) |
| 15 testRunner.waitUntilDone(); |
| 16 |
| 17 window.onload = function() { |
| 18 runAfterDisplay(function() { |
| 19 changeToUSOU(); |
| 20 if (testRunner) |
| 21 runAfterDisplay(function() { testRunner.notifyDone(); }); |
| 22 }); |
| 23 }; |
| 24 </script> |
OLD | NEW |