first-line-first-letter-pseudo-elements-004-ref.html (533B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>MathML and ::first-line/::first-letter pseudo-elements (reference)</title> 4 <style> 5 .firstline > span { background: lime; } 6 .firstletter > span { background: lime; } 7 </style> 8 <ol> 9 <li>PASS if first line is green: 10 <math> 11 <mtext><span class="firstline"><span>Hello,</span><br/>World!</span></mtext> 12 </math> 13 </li> 14 <li>PASS if first letter is green: 15 <math> 16 <mtext><span class="firstletter"><span>H</span>ello, World!</span></mtext> 17 </math> 18 </li> 19 </ol>