Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>CSS Pseudo Test: ::first-letter text from ::before and ::after</title>
<link rel="match" href="first-letter-with-before-after-ref.html">
<style>
#t1::before { content: "F" }
#t2::before { content: "First-letter" }
div::first-letter { color: green; }
</style>
<p>Both 'F's below should be green.</p>
<div id="t1">irst-letter</div>
<div id="t2"></div>