Bug 1382534 - Make layout/reftests/svg/clipPath-polygon-elementFromPoint-01.svg a bit more permissive. r=mstange
The test was asserting that a point on the boundary of an SVG path is inside
the path, but for a point that's right on the boundary, either answer
(inside or outside) is reasonable.
MozReview-Commit-ID: 8srcoPFmDq
--- a/layout/reftests/svg/clipPath-polygon-elementFromPoint-01.svg
+++ b/layout/reftests/svg/clipPath-polygon-elementFromPoint-01.svg
@@ -16,21 +16,21 @@
<script>
function testElementFromPoint() {
let inCount = 0, outCount = 0, inElem, outElem;
document.getElementById("in").style.fill = "red";
document.getElementById("out").style.fill = "blue";
inElem = document.elementFromPoint(100, 100);
if (inElem.style.fill == "red") { ++inCount; }
- inElem = document.elementFromPoint(150, 100);
+ inElem = document.elementFromPoint(149, 100);
if (inElem.style.fill == "red") { ++inCount; }
- inElem = document.elementFromPoint(150, 150);
+ inElem = document.elementFromPoint(149, 149);
if (inElem.style.fill == "red") { ++inCount; }
- inElem = document.elementFromPoint(100, 150);
+ inElem = document.elementFromPoint(100, 149);
if (inElem.style.fill == "red") { ++inCount; }
if (inCount == 4) { document.getElementById("in").style.fill = "lime"; }
outElem = document.elementFromPoint(99, 100);
if (outElem.style.fill == "blue") { ++outCount; }
outElem = document.elementFromPoint(150, 99);
if (outElem.style.fill == "blue") { ++outCount; }
outElem = document.elementFromPoint(151, 150);