Home | History | Annotate | Download | only in ManualTests
      1 <?xml version="1.0"?>
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3 <head>
      4 <title>Strict mode + SVG cursor fallback test</title>
      5 </head>
      6 <body>
      7 <p>Test svg cursor fallback, should show help cursor:</p>
      8 <svg xmlns="http://www.w3.org/2000/svg" 
      9      xmlns:xlink="http://www.w3.org/1999/xlink" width="500" height="300">
     10 <defs>
     11     <cursor id="help" xlink:href="resources/helpcursor.tiff" x="10" y="11"/>
     12 </defs>
     13 <g cursor="url(nonexistent.png), url(custom-cursors.html), url(unknown-scheme:custom-cursors.html), url(#nonexistant), url(#help), text">
     14     <rect x="0" y="0" width="50" height="50" fill="blue" />
     15 </g>
     16 <text y="62">Test svg cursor fallback with hotspot, should show help cursor:</text>
     17 <g cursor="url(#help) 1 1, text">
     18     <rect x="0" y="70" width="50" height="50" fill="red" />
     19 </g>
     20 <text y="132">Test svg cursor fallback with illegal hotspot, should show default cursor:</text>
     21 <g cursor="url(#help) 1, text">
     22     <rect x="0" y="140" width="50" height="50" fill="red" />
     23 </g>
     24 <text y="202">Test svg cursor fallback with illegal hotspot, should show default cursor:</text>
     25 <g cursor="url(#help) 1 2 3, text">
     26     <rect x="0" y="210" width="50" height="50" fill="red" />
     27 </g>
     28 </svg>
     29 <p>Testing cursor fallback in strict mode, should show help cursor:</p>
     30 <div style='width:100px;height:100px;background-color:lightblue; cursor:url(nonexistent.png), url("resources/helpcursor.tiff"), text;'></div>
     31 </body>
     32 </html>
     33