Bootlin logo

Elixir Cross Referencer

<?xml version="1.0"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Strict mode + SVG cursor fallback test</title>
</head>
<body>
<p>Test svg cursor fallback, should show help cursor:</p>
<svg xmlns="http://www.w3.org/2000/svg" 
     xmlns:xlink="http://www.w3.org/1999/xlink" width="500" height="300">
<defs>
    <cursor id="help" xlink:href="resources/helpcursor.tiff" x="10" y="11"/>
</defs>
<g cursor="url(nonexistent.png), url(custom-cursors.html), url(unknown-scheme:custom-cursors.html), url(#nonexistant), url(#help), text">
    <rect x="0" y="0" width="50" height="50" fill="blue" />
</g>
<text y="62">Test svg cursor fallback with hotspot, should show help cursor:</text>
<g cursor="url(#help) 1 1, text">
    <rect x="0" y="70" width="50" height="50" fill="red" />
</g>
<text y="132">Test svg cursor fallback with illegal hotspot, should show default cursor:</text>
<g cursor="url(#help) 1, text">
    <rect x="0" y="140" width="50" height="50" fill="red" />
</g>
<text y="202">Test svg cursor fallback with illegal hotspot, should show default cursor:</text>
<g cursor="url(#help) 1 2 3, text">
    <rect x="0" y="210" width="50" height="50" fill="red" />
</g>
</svg>
<p>Testing cursor fallback in strict mode, should show help cursor:</p>
<div style='width:100px;height:100px;background-color:lightblue; cursor:url(nonexistent.png), url("resources/helpcursor.tiff"), text;'></div>
</body>
</html>