Bug 1935611 - Fix libyuv/libpng link failed for loongarch64. r=glandium,tnikkel,ng
[gecko.git] / dom / canvas / test / test_bug753758.html
blobbd62c8006eab7cad81eb605dc738cd51e5020657
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=753758
5 -->
6 <head>
7 <title>Test for Bug 753758</title>
8 <script src="/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
10 </head>
11 <body>
12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=753758">Mozilla Bug 753758</a>
13 <p id="display"></p>
14 <div id="content" style="display: none">
16 </div>
17 <pre id="test">
18 <script type="application/javascript">
20 /** Test for Bug 753758 **/
22 var c = document.createElement("canvas");
24 var ctx = c.getContext("2d");
25 ctx.mozFillRule = 'evenodd';
26 is(ctx.mozFillRule, 'evenodd', 'Initial value must be set to evenodd');
27 ctx.save();
28 is(ctx.mozFillRule, 'evenodd', 'fillRule value must be stay evenodd');
29 ctx.restore();
30 is(ctx.mozFillRule, 'evenodd', 'fillRule value must be restored to evenodd');
32 </script>
33 </pre>
34 </body>
35 </html>