OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <style> |
| 3 .before:before { content: 'Carpe '; } |
| 4 .after:after { content: 'Foo '; } |
| 5 .target:first-letter { color: green; font-size: 2em; } |
| 6 span { text-decoration: underline; } |
| 7 #a { color: red; } |
| 8 #b { color: green; } |
| 9 #a::first-letter { text-decoration: underline; font-size: 2em; } |
| 10 </style> |
| 11 This tests various first letter combinations. In each case the first letter |
| 12 should be larger and green. |
| 13 <div class="target">Lorem</div> |
| 14 <div class="target"><span>Ipsum</span></div> |
| 15 <div class="target"><span class="before">Diem</span></div> |
| 16 <div class="target"><span class="after"></span>bar</div> |
| 17 <div id="a"> |
| 18 <div id="b">First letter should be green and underlined.</div> |
| 19 </div> |
OLD | NEW |