<style> | |
.path { -webkit-clip-path: url(#clippath); } | |
</style> | |
<script> | |
function loadevent() { | |
document.caretRangeFromPoint(37, 70); | |
if (window.testRunner) { | |
document.body.innerText = "Tests SVG hit test with a recursive clipPath. Test passes if WebKit does not crash. PASS"; | |
testRunner.dumpAsText(); | |
} | |
} | |
</script> | |
<body onload=loadevent()> | |
<svg contentScriptType="text/ecmascript"> | |
<path d="M16 8 L32 56" class="path" /> | |
<g id="group"> | |
<text clip-path="url(#clippath)" to="currentColor">Text</text> | |
</g> | |
<clipPath id="clippath" clipPathUnits="objectBoundingBox"> | |
<use href="#group"/> | |
</clipPath> |