summaryrefslogtreecommitdiffstats
path: root/layout/style/test/test_moz_prefixed_cursor.html
diff options
context:
space:
mode:
Diffstat (limited to 'layout/style/test/test_moz_prefixed_cursor.html')
-rw-r--r--layout/style/test/test_moz_prefixed_cursor.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/layout/style/test/test_moz_prefixed_cursor.html b/layout/style/test/test_moz_prefixed_cursor.html
new file mode 100644
index 0000000000..db7ffaaf56
--- /dev/null
+++ b/layout/style/test/test_moz_prefixed_cursor.html
@@ -0,0 +1,14 @@
+<!doctype html>
+<title>Cursor aliases compute to the unprefixed keyword</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<div></div>
+<script>
+test(function() {
+ let div = document.querySelector("div");
+ for (const kw of ["grab", "grabbing", "zoom-in", "zoom-out"]) {
+ div.style.cursor = "-moz-" + kw;
+ assert_equals(getComputedStyle(div).cursor, kw);
+ }
+}, "-moz- prefixed cursor keywords compute to its unprefixed version");
+</script>