blob: 56b1a5f185ea009e504f6a808d74c51a656e24c1 [file] [log] [blame]
<csstest def=":target pseudo-class" module="W3C Selectors" modulename="css3-modsel" number="21" rev="1.1" date="03-november-2001" 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:target { background-color : lime }</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 green 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 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 id="third" xmlns="http://www.w3.org/1999/xhtml">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>
</code>
</csstest>