Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<meta charset="utf-8">
<title>MathML and ::first-line/::first-letter pseudo-elements (reference)</title>
<style>
.firstline > span { background: lime; }
.firstletter > span { background: lime; }
</style>
<ol>
<li>PASS if first line is green:
<math>
<mtext><span class="firstline"><span>Hello,</span><br/>World!</span></mtext>
</math>
</li>
<li>PASS if first letter is green:
<math>
<mtext><span class="firstletter"><span>H</span>ello, World!</span></mtext>
</math>
</li>
</ol>