CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 147 of 150 of the static tests category | |
Testing | Date | Revision |
::first-letter on inlines (ID #180) | 2004-02-29 | 1.0 |
This line should be green.
p { color: green; } p:first-letter { background: red; color: yellow; font-size: 4em; } p::first-letter { background: red; color: yellow; font-size: 4em; } span:first-letter { background: white; color: green; font-size: 1em; } span::first-letter { background: white; color: green; font-size: 1em; }
<p><span>This line should be green.</span></p>