3 <title>Test for Bug
1207734 (individual transforms)
</title>
5 FIXME: This is only here in a separate file since it needs the
6 layout.css.individual-transform.enabled pref to be set when it runs and the
7 pref= annotation in mochitest.ini doesn't work on Android (bug 1393326).
8 Once we turn on that pref by default or fix bug 1393326 we can move this back
9 into test_specified_value_serialization.html.
12 const is
= opener
.is
.bind(opener
);
16 o
.SimpleTest
.finish();
20 // Test for rotate property serialization.
23 [" 100grad ", "100grad"],
24 [" 100gRaD ", "100grad"],
25 [" 0.25turn ", "0.25turn"],
26 [" 0.25tUrN ", "0.25turn"],
27 [" 1.57RaD ", "1.57rad"],
28 ].forEach(function(arr
) {
29 document
.documentElement
.style
.rotate
= arr
[0];
30 is(document
.documentElement
.style
.rotate
, arr
[1],
31 "bug-1207734: incorrect rotate serialization");
33 document
.documentElement
.style
.rotate
= "";
35 // Test for translate property serialization.
37 [" 50% 5px 6px ", "50% 5px 6px"],
38 [" 50% 10px 100px ", "50% 10px 100px"],
39 [" 4px 5px ", "4px 5px"],
40 [" 10% 10% 99px ", "10% 10% 99px"],
42 ].forEach(function(arr
) {
43 document
.documentElement
.style
.translate
= arr
[0];
44 is(document
.documentElement
.style
.translate
, arr
[1],
45 "bug-1207734: incorrect translate serialization");
47 document
.documentElement
.style
.translate
= "";
49 // Test for scale property serialization.
52 [" 10 20.5 ", "10 20.5"],
53 [" 10 20 30 ", "10 20 30"],
54 ].forEach(function(arr
) {
55 document
.documentElement
.style
.scale
= arr
[0];
56 is(document
.documentElement
.style
.scale
, arr
[1],
57 "bug-1207734: incorrect scale serialization");
60 document
.documentElement
.style
.scale
= "";