diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2008-10-21 07:00:00 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2008-10-21 07:00:00 -0700 |
commit | 9364f22aed35e1a1e9d07c121510f80be3ab0502 (patch) | |
tree | d49911209b132da58d838efa852daf28d516df21 /WebCore/manual-tests/cursorfallback.xml | |
parent | 87eb0cb35bad8784770ebc807e6c982432e47107 (diff) | |
download | external_webkit-9364f22aed35e1a1e9d07c121510f80be3ab0502.zip external_webkit-9364f22aed35e1a1e9d07c121510f80be3ab0502.tar.gz external_webkit-9364f22aed35e1a1e9d07c121510f80be3ab0502.tar.bz2 |
Initial Contribution
Diffstat (limited to 'WebCore/manual-tests/cursorfallback.xml')
-rw-r--r-- | WebCore/manual-tests/cursorfallback.xml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/WebCore/manual-tests/cursorfallback.xml b/WebCore/manual-tests/cursorfallback.xml new file mode 100644 index 0000000..a4fdf2f --- /dev/null +++ b/WebCore/manual-tests/cursorfallback.xml @@ -0,0 +1,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> |