19 lines
748 B
HTML
19 lines
748 B
HTML
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<script>
|
|
if (window.testRunner)
|
|
testRunner.dumpAsText();
|
|
</script>
|
|
<body>
|
|
This test is to ensure that we do not crash when applying an SVG font to a text node with an anonymous parent. It passes if it does not crash.
|
|
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
|
<defs>
|
|
<font id="ValidTestFont" horiz-adv-x="450" >
|
|
<font-face font-family="ValidTestFont" />
|
|
<glyph glyph-name="exclam" unicode="!" horiz-adv-x="350" d="M 100 100 L 100 300 L 300 300 L 300 100 z" />
|
|
</font>
|
|
</defs>
|
|
</svg>
|
|
<div style="font-family: ValidTestFont">!<div>!</div></div>
|
|
</body>
|
|
</html>
|