when untransformed
        new Point(115, 300),  // Inside bottom-left when untransformed
      ]
    }
  ];

  tests.forEach(testcase => {
    test(t => {
      const expectedElem = document.getElementById(testcase.expectedElemId);
      // Test points that should hit the element
      for (const point of testcase.insidePoints) {
        const hitElem = document.elementFromPoint(point.x, point.y);
        assert_equals(hitElem, expectedElem,
          `point (${point.x}, ${point.y}) should be inside elemen