<rdar://problem/6302405> Crash (null-deref) when using :before pseudoselector with...
[WebKit-https.git] / LayoutTests / svg / css / crash-css-generated-content.xhtml
1 <!DOCTYPE html
2   PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 <html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
5     <style>
6         svg text:before {
7             content: 'FAIL';
8         }
9         svg text:after {
10             content: 'FAIL';
11         }
12     </style>
13     <head>
14         <title>Test case for rdar://6302405</title>
15     </head>
16     <body>
17         <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
18             <text x="50" y="50">This test ensures that we do not crash when css generated content attempts to attach to svg text</text>
19         </svg>
20         <script>
21         <![CDATA[
22             if (window.layoutTestController)
23                 layoutTestController.dumpAsText();
24         ]]>
25         </script>
26     </body>
27 </html>