css3-modsel-66.xml (1404B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>NEGATED :target pseudo-class</title> 5 <style type="text/css"><![CDATA[p { background-color: navy; color: white; } 6 p:not(:target) { background-color: white; color: black; }]]></style> 7 <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> 8 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 9 <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> 10 <meta name="flags" content=" interact" /> 11 </head> 12 <body> 13 <p id="first">This paragraph should be unstyled. 14 The background of the following paragraph should become blue when 15 you follow <a href="#second">this link</a>.</p> 16 <p id="second">This paragraph should initially be unstyled. 17 It should become blue when you select the link above. When you select 18 <a href="#third">this link</a>, it should return to being unstyled and the 19 background of the paragraph below should become blue.</p> 20 <p id="third">This paragraph should initially be unstyled. 21 It should become blue when you select the link above. When you follow 22 <a href="#missing">this link</a>, the three paragraphs 23 should all return to being unstyled.</p> 24 </body> 25 </html>