t ${testcase.expectedElemId}`);
      }
      // Test points that should NOT hit the element
      for (const point of testcase.outsidePoints) {
        const hitElem = document.elementFromPoint(point.x, point.y);
        assert_not_equals(hitElem, expectedElem,
          `point (${point.x}, ${point.y}) should be outside element ${testcase.expectedElemId}`);
      }
    }, `${document.title}, hittesting ${testcase.expectedElemId})`);
  });
</script>

</html>