<?xml-stylesheet href="../../../style/xml-full.css" type="text/css"?>
<?xml-stylesheet href="css3-modsel-66.css" type="text/css"?>
<test xmlns:xlink="http://www.w3.org/1999/xlink">
 <title>NEGATED :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-159.xml">Syntax and parsing of new pseudo-elements</data> </item>
  <item> <name>Previous</name> <data xlink:type="simple" xlink:href="css3-modsel-65.xml">NEGATED :focus pseudo-class</data> </item>
  <item> <name>Test #</name> <data>10 of 15 of the interactive tests category</data> </item>
  <item> <name>Testing</name> <data>NEGATED :target pseudo-class</data> </item>
  <item> <name>ID</name> <data>66</data> </item>
  <item> <name>Date</name> <data>13-november-2001</data> </item>
  <item> <name>Revision</name> <data>1.1</data> </item>
 </metadata>
   <requirement>User interaction is required for this test.</requirement>
  <content xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml">
<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 { background-color: lime; }
p:not(:target) { background-color: transparent; }</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>