<!DOCTYPE html>
<html>
Test passes if it does not crash.
<svg viewBox="0 0 1 1">
<font-face font-family="A">
<font-face-src>
<font-face-uri xlink:href="A"/>
</font-face-src>
</font-face>
<g font-family="A">
<text>PASS</text>
<script>
    if (window.testRunner)
        testRunner.dumpAsText();

    document.execCommand("SelectAll");
</script>
<g>
<text></text>
</g>
</g>
</svg>
</html>
