17 lines
566 B
HTML
17 lines
566 B
HTML
<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" />
|
|
<clipPath id="clippath" clipPathUnits="objectBoundingBox">
|
|
<text clip-path="url(#clippath)" to="currentColor">Text</text> |