blob: 7d17bf525dd6ad7eb0a2c23b0d49e3baa58b2c9b [file] [log] [blame]
<csstest def="NEGATED :target pseudo-class" module="W3C Selectors" modulename="css3-modsel" number="66" rev="1.2" date="30-august-2005" xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml" xmlns="http://www.example.org/css3tests">
<author>Daniel Glazman</author>
<author>Ian Hickson</author>
<userinteraction/>
<cssrules>p { background-color: navy; color: white; }
p:not(:target) { background-color: white; color: black; }</cssrules>
<code>
<p id="first" xmlns="http://www.w3.org/1999/xhtml">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 id="second" xmlns="http://www.w3.org/1999/xhtml">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 id="third" xmlns="http://www.w3.org/1999/xhtml">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>
</code>
</csstest>