diff options
Diffstat (limited to 'testing/web-platform/mozilla/tests/css/cssom/moz-transform-exists.html')
-rw-r--r-- | testing/web-platform/mozilla/tests/css/cssom/moz-transform-exists.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/web-platform/mozilla/tests/css/cssom/moz-transform-exists.html b/testing/web-platform/mozilla/tests/css/cssom/moz-transform-exists.html new file mode 100644 index 0000000000..b46238863c --- /dev/null +++ b/testing/web-platform/mozilla/tests/css/cssom/moz-transform-exists.html @@ -0,0 +1,22 @@ +<!doctype html> +<title>CSS Test: MozTransform exists in Gecko for compat reasons</title> +<meta charset="utf-8"> +<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io"> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script> +test(function() { + let el = document.documentElement; + + assert_true("MozTransform" in el.style, "MozTransform exists"); + assert_true("MozTransformOrigin" in el.style, "MozTransformOrigin also exists"); + + el.style.MozTransform = "scale(1)"; + assert_not_equals(el.MozTransform, "", "MozTransform sets the value"); + el.style.MozTransformOrigin = "0 0"; + assert_not_equals(el.MozTransformOrigin, "", "MozTransformOrigin sets the value"); + + assert_equals(el.transform, el.MozTransform, "MozTransform is an alias of transform"); + assert_equals(el.transformOrigin, el.MozTransformOrigin, "MozTransformOrigin is an alias of transformOrigin"); +}); +</script> |