File: cursorfallback.xml

package info (click to toggle)
qtwebkit 2.3.4.dfsg-10
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 290,632 kB
  • sloc: cpp: 1,417,515; python: 85,048; ansic: 39,357; perl: 38,862; ruby: 10,313; objc: 9,505; xml: 8,679; asm: 3,864; yacc: 2,458; sh: 1,237; lex: 813; makefile: 592; java: 228; php: 79
file content (32 lines) | stat: -rw-r--r-- 1,422 bytes parent folder | download | duplicates (17)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?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>