Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /mathml/relations/css-styling/first-line-first-letter-pseudo-elements-001.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>MathML and ::first-line/::first-letter pseudo-elements</title>
<link rel="match" href="first-line-first-letter-pseudo-elements-001-ref.html"/>
<meta name="assert" content="::first-line and ::first-letter do not apply to MathML elements.">
<style>
.firstline::first-line { background: red; }
.firstletter::first-letter { background: red; }
</style>
<p>PASS if there is no red.</p>
<ol>
<li>
<math>
<mtext class="firstline"><span>Hello,<br/>World!</span></mtext>
</math>
</li>
<li>
<math>
<mtext class="firstletter">Hello, World!</mtext>
</math>
</li>
</ol>