Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4591,13 +4591,16 @@ <h3>Interactability</h3>
is the origin position of the rectangle
that is the intersection between
the element&apos;s first {{DOMRect}} of {{Element/getClientRects()}}
with non-zero width and height (or the first {{DOMRect}} if none have non-zero dimensions)
and the <a>initial viewport</a>.
It can be calculated this way:

<ol>
<li><p>Let <var>rectangle</var> be
the first object of the {{DOMRect}} collection
returned by calling {{Element/getClientRects()}} on <a><var>element</var></a>.
the first object in the {{DOMRect}} collection
returned by calling {{Element/getClientRects()}} on <a><var>element</var></a>
that has non-zero width and height,
or the first object in the collection if no such object is found.

Comment on lines 4599 to 4604

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another suggestion so that it reads better IMHO. Sadly I cannot get GitHub to let me create a suggestion. :(

Let rectangle be the first object in the DOMRect collection returned by calling getClientRects() on element whose width and height are both non-zero. If no such object exists, let rectangle be the first object in the collection.

<li><p>Let <var>left</var> be
<a>max</a>(0, <a>min</a>(<a>x coordinate</a>,
Expand Down
Loading