1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html 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>When you hover over this text it should go bold: <span class="serif test">test test</span> |</p>
19 <p>When you hover over this text it should go bold: <span class="sansSerif test">test test</span> |</p>
20 <p>When you hover over this text it should go bold: <span class="monospace test">test test</span> |</p>
21 </body>
22 </html>