CSS 3 Module <== Test # ==>
W3C Selectors 10 of 20 of the interactive tests category
Testing Date Revision
::selection pseudo-element (ID #40) 2001-11-20 1.1

NOTE: User interaction is required for this test.

Any textual selection in this long paragraph should have green background. Any textual selection in this long paragraph should have green background. Any textual selection in this long paragraph should have green background.

p::selection { background-color : lime }
<p>Any textual selection in this long paragraph should have green background. Any textual selection in this long paragraph should have green background. Any textual selection in this long paragraph should have green background.</p>