Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / text / text-font-anonymous-parent.xhtml
blobdc3285feea135fe203391989ec94f2907ef1f8db
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <script>
3 if (window.testRunner)
4 testRunner.dumpAsText();
5 </script>
6 <body>
7 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.
8 <svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
9 <defs>
10 <font id="ValidTestFont" horiz-adv-x="450" >
11 <font-face font-family="ValidTestFont" />
12 <glyph glyph-name="exclam" unicode="!" horiz-adv-x="350" d="M 100 100 L 100 300 L 300 300 L 300 100 z" />
13 </font>
14 </defs>
15 </svg>
16 <div style="font-family: ValidTestFont">!<div>!</div></div>
17 </body>
18 </html>