cursor-box-004

cursor on the margin-box

WeasyPrint

This browser

Flags
interact
Assertion
The cursor property is not applied over the margin box.

Source

 1 <!DOCTYPE html>
 2 <html><head><title>CSS Basic User Interface Test: cursor on the margin-box</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="The cursor property is not applied over the margin box." name="assert">
 8 <style>
 9 #container {
10   position: absolute;
11   background: blue;
12   cursor: crosshair;
13 }
14 #test {
15   margin: 100px 50px;
16   cursor: url("support/cursors/fail.png"), help;
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 id="container"><div id="test"></div></div>
22 
23 </body></html>