Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/cssom/moz-transform-exists.html - WPT Dashboard Interop Dashboard
<!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>