summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/mathml/relations/css-styling/first-line-first-letter-pseudo-elements-004-ref.html
blob: 60d34274899f12d8ad70e9526b7300581696dd5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!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>