dynamic-pseudo-classes-000

Selectors: The dynamic pseudo-classes: :hover on links

WeasyPrint

This browser

Flags
interact
Assertion
Browsers should honour the change of state in the elements

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3  <head>
 4   <title>CSS Test: Selectors: The dynamic pseudo-classes: :hover on links</title>
 5   <link rel="author" title="Gabriele Romanato" href="mailto:gabriele.romanato@gmail.com">
 6   <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#dynamic-pseudo-classes">
 7   <meta name="flags" content="interact">
 8   <meta name="assert" content="Browsers should honour the change of state in the elements">
 9 <style type="text/css">
10 a:hover {background-color: green; color: white}
11 
12 </style>
13  </head>
14  <body>
15 <p>The link in the next paragraph should have a green background color and a white text color on :hover.</p>
16 
17 <p><a href="#">Hover me</a></p>
18 
19 
20  </body>
21 </html>