CSS 3 Module <== Test # ==>
W3C Selectors 150 of 150 of the static tests category
Testing Date Revision
Syntax and parsing of class selectors (ID #183) 2004-04-24 1.0

This text should be green.

This text should be green.

This text should be green.

This text should be green.

This text should be green.

This text should be green.

p { color: green; }
..test { background: red; color: yellow; }
.foo..quux { background: red; color: yellow; }
.bar. { background: red; color: yellow; }
<p class="test">This text should be green.</p>
<p class=".test">This text should be green.</p>
<p class="foo">This text should be green.</p>
<p class="foo quux">This text should be green.</p>
<p class="foo  quux">This text should be green.</p>
<p class=" bar ">This text should be green.</p>