layout/reftests/canvas/evenodd-fill-3.html

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     1 <html>
     2 <head>
     3   <script type="text/javascript">
     4 window.onload = function() {
     5     var ctx = document.getElementById("c1").getContext("2d");
     6     ctx.mozFillRule = "evenodd";
     8     ctx.moveTo(50, 50);
     9     ctx.lineTo(250, 50);
    10     ctx.lineTo(250, 250);
    11     ctx.lineTo(50, 250);
    12     ctx.lineTo(50, 50);
    14     ctx.moveTo(100, 100);
    15     ctx.lineTo(100, 200);
    16     ctx.lineTo(200, 200);
    17     ctx.lineTo(200, 100);
    18     ctx.lineTo(100, 100);
    20     ctx.fill();
    21 }
    22   </script>
    23 </head>
    24 <body>
    25   <div><canvas id="c1" width="300" height="300"></canvas></div>
    26 </body>
    27 </html>

mercurial