<?xml-stylesheet href="../../../style/xml-full.css" type="text/css"?>
<?xml-stylesheet href="css3-modsel-21.css" type="text/css"?>
<test xmlns:xlink="http://www.w3.org/1999/xlink">
 <title>:target pseudo-class</title>
 <author>Daniel Glazman</author>
 <author>Ian Hickson</author>
 <metadata>
  <item> <name>CSS 3 Module</name> <data>W3C Selectors</data> </item>
  <item> <name>Next</name> <data xlink:type="simple" xlink:href="css3-modsel-63.xml">NEGATED :hover pseudo-class</data> </item>
  <item> <name>Previous</name> <data xlink:type="simple" xlink:href="css3-modsel-20.xml">:focus pseudo-class</data> </item>
  <item> <name>Test #</name> <data>8 of 15 of the interactive tests category</data> </item>
  <item> <name>Testing</name> <data>:target pseudo-class</data> </item>
  <item> <name>ID</name> <data>21</data> </item>
  <item> <name>Date</name> <data>2001-11-03</data> </item>
  <item> <name>Revision</name> <data>1.1</data> </item>
 </metadata>
   <requirement>User interaction is required for this test.</requirement>
  <content>
<p xmlns="http://www.w3.org/1999/xhtml" id="first">This paragraph should be unstyled.
       The background of the following paragraph should become green when
       you follow <a href="#second">this link</a>.</p>
<p xmlns="http://www.w3.org/1999/xhtml" id="second">This paragraph should initially be unstyled.
       It should become green when you select the link above. When you select
       <a href="#third">this link</a>, it should return to being unstyled and the 
       background of the paragraph below should become green.</p>
<p xmlns="http://www.w3.org/1999/xhtml" id="third">This paragraph should initially be unstyled.
       It should become green when you select the link above. When you follow
       <a href="#missing">this link</a>, the three paragraphs
       should all return to being unstyled.</p>
</content>
  <source>
   <css>p:target { background-color : lime }</css>
   <xml>
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; id=&quot;first&quot;&gt;This paragraph should be unstyled.
       The background of the following paragraph should become green when
       you follow &lt;a href=&quot;#second&quot;&gt;this link&lt;/a&gt;.&lt;/p&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; id=&quot;second&quot;&gt;This paragraph should initially be unstyled.
       It should become green when you select the link above. When you select
       &lt;a href=&quot;#third&quot;&gt;this link&lt;/a&gt;, it should return to being unstyled and the 
       background of the paragraph below should become green.&lt;/p&gt;
&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; id=&quot;third&quot;&gt;This paragraph should initially be unstyled.
       It should become green when you select the link above. When you follow
       &lt;a href=&quot;#missing&quot;&gt;this link&lt;/a&gt;, the three paragraphs
       should all return to being unstyled.&lt;/p&gt;
</xml>
  </source>
</test>