no bug - Import translations from android-l10n r=release a=l10n CLOSED TREE
[gecko.git] / layout / base / tests / test_frame_reconstruction_for_svg_transforms.html
blobac0b5d81910236c069283faa0a92208df131694e
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=1419764
5 -->
6 <head>
7 <meta charset="utf-8">
8 <title>Test for Bug 1419764</title>
9 <script src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
11 <script type="application/javascript">
13 /** Test for Bug 1419764 **/
15 SimpleTest.waitForExplicitFinish();
17 function run() {
18 var utils = SpecialPowers.getDOMWindowUtils(window);
19 var rect = document.querySelector("rect");
21 var matrix = rect.transform.baseVal[0].matrix;
23 matrix.e = 100;
24 document.documentElement.offsetTop; // flush layout
26 var startcount = utils.framesConstructed;
28 matrix.e = 200;
29 document.documentElement.offsetTop; // flush layout
31 var endcount = utils.framesConstructed;
32 is(endcount, startcount, "should not do frame construction");
33 SimpleTest.finish();
36 </script>
37 </head>
38 <body onload="run()">
39 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1419764">Mozilla Bug 1419764</a>
40 <svg>
41 <rect transform="translate(1 1)" width="20" height="20" fill="yellow"/>
42 </svg>
43 <pre id="test">
44 </pre>
45 </body>
46 </html>