first-line-first-letter-pseudo-elements-002-ref.html (759B)
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 <p>PASS if the first line or letter is green.</p> 9 <ol> 10 <li> 11 <div style="display: inline math" class="firstline"> 12 <span>Hello,</span><br/>World! 13 </div> 14 </li> 15 <li> 16 <div style="display: inline math" class="firstletter"> 17 <span>H</span>ello, World! 18 </div> 19 </li> 20 <li> 21 <div style="display: block math" class="firstline"> 22 <span>Hello,</span><br/>World! 23 </div> 24 </li> 25 <li> 26 <div style="display: block math" class="firstletter"> 27 <span>H</span>ello, World! 28 </div> 29 </li> 30 </ol>