From 8e07cfd7d77b0dd1cd5ed609c706353d95f20edc Mon Sep 17 00:00:00 2001 From: Julian Descottes Date: Wed, 1 Jul 2026 17:13:32 +0200 Subject: [PATCH] fix: prefer first non-zero rect for interactability checks --- index.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 8afc1898..905c3f8a 100644 --- a/index.html +++ b/index.html @@ -4591,13 +4591,16 @@

Interactability

is the origin position of the rectangle that is the intersection between the element's first {{DOMRect}} of {{Element/getClientRects()}} + with non-zero width and height (or the first {{DOMRect}} if none have non-zero dimensions) and the initial viewport. It can be calculated this way:
  1. Let rectangle be - the first object of the {{DOMRect}} collection - returned by calling {{Element/getClientRects()}} on element. + the first object in the {{DOMRect}} collection + returned by calling {{Element/getClientRects()}} on element + that has non-zero width and height, + or the first object in the collection if no such object is found.

  2. Let left be max(0, min(x coordinate,