diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
commit | 36d22d82aa202bb199967e9512281e9a53db42c9 (patch) | |
tree | 105e8c98ddea1c1e4784a60a5a6410fa416be2de /testing/web-platform/tests/css/css-ui/cursor-x-y-001.html | |
parent | Initial commit. (diff) | |
download | firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-ui/cursor-x-y-001.html')
-rw-r--r-- | testing/web-platform/tests/css/css-ui/cursor-x-y-001.html | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-ui/cursor-x-y-001.html b/testing/web-platform/tests/css/css-ui/cursor-x-y-001.html new file mode 100644 index 0000000000..16b147cc2d --- /dev/null +++ b/testing/web-platform/tests/css/css-ui/cursor-x-y-001.html @@ -0,0 +1,38 @@ +<!DOCTYPE html> +<html onclick="fail()"> +<title>CSS Basic User Interface Test: cursor hotspot coordinates</title> +<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/"> +<link rel="help" href="http://www.w3.org/TR/css3-ui/#cursor"> +<meta name="flags" content="interact dom"> +<meta charset="UTF-8"> +<meta name="assert" content="The coordnates of the cursor hotspot can be specified."> +<style> +body, html { + cursor: url("support/cursors/arrows.png") 31 31, url("support/cursors/arrows.ico") 31 31, help; +} +div { + margin: 30px; + width: 15px; + height: 15px; + background: green; +} +#fail, #pass { display: none } +</style> + +<p>If you are on a device without a cursor, skip this test. +<p>Otherwise, if the cursor does not look like a red and a green arrow, the test has failed. +<p>Place the cursor so that the tip of the <strong>green arrow</strong> is on the <strong>green box</strong>, then click. +<p>If nothing happens when you click, the test has failed. +<div onclick="pass(event)"></div> +<p id=fail>The test has failed. +<p id=pass>The test passes. + +<script> +function pass(e) { + document.getElementById("pass").style.display="block"; + e.stopPropagation(); +} +function fail() { + document.getElementById("fail").style.display="block"; +} +</script> |