<?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-66b.xml">NEGATED :target pseudo-class</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>93 of 296</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>2005-08-30</data> </item>
  <item> <name>Revision</name> <data>1.2</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 blue 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 blue 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 blue.</p>
<p xmlns="http://www.w3.org/1999/xhtml" id="third">This paragraph should initially be unstyled.
       It should become blue 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: navy; color: white; }
p:not(:target) { background-color: white; color: black; }</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 blue 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 blue 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 blue.&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 blue 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>