mirror of
https://github.com/servo/servo.git
synced 2025-10-17 00:39:15 +01:00
22 lines
1.2 KiB
XML
22 lines
1.2 KiB
XML
<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>
|