hover-selector-002.xht (1030B)
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" lang="en"> 3 <head> 4 <title>CSS Test: :hover and font-weight</title> 5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 6 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/selectors/hover/001.html" type="text/html"/> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#dynamic-pseudo-classes" /> 8 <meta name="flags" content="interact"/> 9 <style type="text/css"> 10 p { color: blue; } 11 .serif { font: 1em serif; } 12 .sansSerif { font: 1em sans-serif; } 13 .monospace { font: 1em monospace; } 14 .test:hover { font-weight: bold; } 15 </style> 16 </head> 17 <body> 18 <p>Test passes if each "Text sample" becomes bold when hovering over it</p> 19 <p> <span class="serif test">Text sample</span> </p> 20 <p> <span class="sansSerif test">Text sample</span> </p> 21 <p> <span class="monospace test">Text sample</span> </p> 22 </body> 23 </html>