blob: 3d6be8025679fa80ddd9d8607fb470d32adcf476 [file] [log] [blame]
<svg xmlns="http://www.w3.org/2000/svg">
<foreignObject>
<body xmlns="http://www.w3.org/1999/xhtml">
<div style="position:absolute">This test passes if we do NOT crash while rendering SVG text with CSS styles :first-letter and :first-line.</div>
</body>
</foreignObject>
<style>
text:first-letter { color: red }
text:first-line { color: red }
</style>
<text x="10" y="50">Some text</text>
<script>
if (window.testRunner)
testRunner.dumpAsText();
</script>
</svg>