cursor-hover-002

cursor and :hover on ancestor

WeasyPrint

This browser

Flags
interact
Assertion
Checks that the correct cursor is used when :hover appears in the selector other than at the rightmost part.

Source

 1 <!DOCTYPE html>
 2 <html><head><title>CSS Basic User Interface Test: cursor and :hover on ancestor</title>
 3 <link href="mailto:florian@rivoal.net" rel="author" title="Florian Rivoal">
 4 <link href="http://www.w3.org/TR/css3-ui/#cursor" rel="help">
 5 <meta content="interact" name="flags">
 6 <meta charset="UTF-8">
 7 <meta content="Checks that the correct cursor is used when :hover appears in the selector other than at the rightmost part." name="assert">
 8 <style>
 9 div {
10   cursor: url("support/cursors/fail.png"), help;
11   width: 100px;
12   height: 100px;
13   border: solid blue;
14 }
15 :hover div {
16   cursor: crosshair;
17 }
18 </style>
19 </head><body>
20   <p>The test passes if, when moved inside the blue box, the cursor looks like a crosshair (e.g. short line segments resembling a "+" sign).</p>
21   <div></div>
22 
23 </body></html>