hover-selector-003

:hover and font-weight

WeasyPrint

This browser

Flags
interact

Source

 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/002.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    p + p { text-align: center; }
12    .serif { font: 1em serif; }
13    .sansSerif { font: 1em sans-serif; }
14    .monospace { font: 1em monospace; }
15    .test:hover { font-weight: bold; }
16   </style>
17  </head>
18  <body>
19   <p>When you hover over these lines they should go bold:</p>
20   <p>| <span class="serif test">test test</span> |</p>
21   <p>| <span class="sansSerif test">test test</span> |</p>
22   <p>| <span class="monospace test">test test</span> |</p>
23  </body>
24 </html>