CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 162 of 182 | |
Testing | Date | Revision |
::first-line on inlines (ID #179) | 2004-02-29 | 1.0 |
This line should be green.
p { color: green; } span:first-line { background: red; color: yellow; font-size: 4em; } span::first-line { background: red; color: yellow; font-size: 4em; }
<p><span>This line should be green.</span></p>