blob: c94d8422627381dec102437f8e3920c8c36c5c22 [file] [log] [blame]
dougk@apple.com54ed4e92020-04-08 17:00:34 +00001<style>
2.path { -webkit-clip-path: url(#clippath); }
3</style>
4<script>
5function 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>