4 https://bugzilla.mozilla.org/show_bug.cgi?id=435293
7 <title>Test for Bug
435293</title>
8 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
18 transform: scalex(
0.5);
21 transform: scaley(
0.5);
24 transform: scale(
0.5,
0.5);
27 transform: scale(
0.5,
0.5,
0.5);
30 transform: scale(
80%, none);
33 transform: scale(
640000,
0.0000000000000000001);
36 transform: scale(
2em,
4px);
41 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=435293">Mozilla Bug
435293</a>
44 <div id=
"test1" class=
"test">
47 <p id=
"test2" class=
"test">
50 <div id=
"test3" class=
"test">
53 <div id=
"test4" class=
"test">
56 <div id=
"test5" class=
"test">
59 <div id=
"test6" class=
"test">
62 <div id=
"test7" class=
"test">
68 <script type=
"application/javascript">
72 var style = window.getComputedStyle(document.getElementById(
"test1"));
73 is(style.getPropertyValue(
"transform"),
"matrix(0.5, 0, 0, 1, 0, 0)",
74 "Scalex proper matrix is applied");
76 style = window.getComputedStyle(document.getElementById(
"test2"));
77 is(style.getPropertyValue(
"transform"),
"matrix(1, 0, 0, 0.5, 0, 0)",
78 "Scaley proper matrix is applied");
80 style = window.getComputedStyle(document.getElementById(
"test3"));
81 is(style.getPropertyValue(
"transform"),
"matrix(0.5, 0, 0, 0.5, 0, 0)",
82 "Scale proper matrix is applied");
84 style = window.getComputedStyle(document.getElementById(
"test4"));
85 is(style.getPropertyValue(
"transform"),
"none",
86 "Three dimensional scale should be ignored");
88 style = window.getComputedStyle(document.getElementById(
"test5"));
89 is(style.getPropertyValue(
"transform"),
"none",
90 "Percent values in scale should be ignored");
92 style = window.getComputedStyle(document.getElementById(
"test6"));
93 is(style.getPropertyValue(
"transform"),
"matrix(640000, 0, 0, 1e-19, 0, 0)",
94 "Ensure wacky values are accepted");
96 style = window.getComputedStyle(document.getElementById(
"test7"));
97 is(style.getPropertyValue(
"transform"),
"none",
98 "No unit values allowed in scale");