Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / pattern-empty-bbox-2.html
blob968ff8254cde1f6c2ad8a0cdceb965749a14416e
1 <!DOCTYPE html>
2 <script src="../../resources/run-after-layout-and-paint.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');
14 if (window.testRunner)
15 testRunner.waitUntilDone();
17 window.onload = function() {
18 runAfterLayoutAndPaint(function() {
19 changeToUSOU();
20 if (testRunner)
21 runAfterLayoutAndPaint(function() { testRunner.notifyDone(); });
22 });
24 </script>