dougk@apple.com | 54ed4e9 | 2020-04-08 17:00:34 +0000 | [diff] [blame] | 1 | <style> |
| 2 | .path { -webkit-clip-path: url(#clippath); } |
| 3 | </style> |
| 4 | <script> |
| 5 | function loadevent() { |
| 6 | document.caretRangeFromPoint(37, 70); |
| 7 | if (window.testRunner) { |
| 8 | document.body.innerText = "Tests SVG hit test with a recursive clipPath. Test passes if WebKit does not crash. PASS"; |
| 9 | testRunner.dumpAsText(); |
| 10 | } |
| 11 | } |
| 12 | </script> |
| 13 | <body onload=loadevent()> |
| 14 | <svg contentScriptType="text/ecmascript"> |
| 15 | <path d="M16 8 L32 56" class="path" /> |
| 16 | <g id="group"> |
| 17 | <text clip-path="url(#clippath)" to="currentColor">Text</text> |
| 18 | </g> |
| 19 | <clipPath id="clippath" clipPathUnits="objectBoundingBox"> |
| 20 | <use href="#group"/> |
| 21 | </clipPath> |