4 https://bugzilla.mozilla.org/show_bug.cgi?id=764125
6 Test the correct behaviour for isPointInPath in the presence of multiple transforms,
7 where only one tranform ought to be applied.
10 <title>Test for Bug
764125</title>
11 <script type=
"application/javascript" src=
"/tests/SimpleTest/SimpleTest.js"></script>
12 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
15 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=764125">Mozilla Bug
764125</a>
17 <div id=
"content" style=
"display: none">
22 /** Test for Bug 764125 **/
24 var c
= document
.createElement("canvas");
26 var ctx
= c
.getContext("2d");
28 ctx
.rect(50, 0, 20, 20);
30 ok(ctx
.isPointInPath(60, 10) === false, "ctx.isPointInPath(60, 10) === false");
31 ok(ctx
.isPointInPath(110, 10) === true, "ctx.isPointInPath(110, 10) === true");
32 ok(ctx
.isPointInPath(110, 60) === false, "ctx.isPointInPath(110, 60) === false");