 promise_test(async () => {
    const body = document.body;
    for (let i = 0; i < 6; i++) {
      const div = document.createElement("div");
      div.setAttribute("class", "target");
      div.setAttribute("id", `div${i}`);
      body.appendChild(div);
    }
    body.firstElementChild.getBoundingClientRect();

    let record = false;
    const mouseEvents = [], pointerEvents = [];
    function recordEvent(event) {
      if (!record || !event.target.id) {
        return;
      }
      const e = {
        