const caretPosition = document.caretPositionFromPoint(50, 50);
    assert_equals(caretPosition.offsetNode, circle);
    assert_equals(caretPosition.offset, 0);
  }, "document.caretPositionFromPoint() should return a CaretPosition over SVG elements");

  test(() => {
    container.setHTMLUnsafe(`<div id="textDiv">aaa</div>`);
    const textDiv = document.getElementById("textDiv");
    const rect = textDiv.getBoundingClientRect();
    const characterWidth = rect.width / textDiv.textContent.length;
    const c