Skip to content

Conversation

yezhizhen
Copy link
Member

@yezhizhen yezhizhen commented Aug 18, 2025

Currently, the definition of element is in-view needs to compute pointer-interactive paint tree, whose step 4 computes in-view center point, which again requires element is in-view!

But actually we can safely remove the in-view requirement of in-view center point, as step 5 of compute pointer-interactive paint tree feed center point to elementsFromPoint, which simply return a empty sequence if input is not in viewport.

As a result, we have empty pointer-interactive paint tree meaning that element is not in-view.


Preview | Diff

@yezhizhen yezhizhen marked this pull request as draft August 18, 2025 03:10
Signed-off-by: Euclid Ye <[email protected]>
@yezhizhen yezhizhen force-pushed the fix-circular-definition branch from dabf8af to 2850417 Compare August 18, 2025 03:16
@yezhizhen yezhizhen marked this pull request as ready for review August 18, 2025 03:16
@yezhizhen
Copy link
Member Author

cc @xiaochengh

@jgraham
Copy link
Member

jgraham commented Sep 5, 2025

I think that "known to be in view" is supposed to be understood as an informative precondition on the algorithm returning a usable result, not a normative requirement to invoke the "in view" algorithm that results in an infinite loop. However we could take this as an editorial change, if people agree it makes things clearer.

@w3cbot
Copy link

w3cbot commented Sep 5, 2025

jgraham marked as non substantive for IPR from ash-nazg.

@whimboo whimboo requested a review from OrKoN September 8, 2025 09:37
@whimboo
Copy link
Contributor

whimboo commented Sep 8, 2025

@OrKoN would you be fine with this change? I would be fine to reduce confusion.

@whimboo whimboo merged commit a101f0a into w3c:master Sep 8, 2025
2 checks passed
github-actions bot added a commit that referenced this pull request Sep 8, 2025
SHA: a101f0a
Reason: push, by whimboo

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit to soloinovator/webdriver that referenced this pull request Sep 8, 2025
SHA: a101f0a
Reason: push, by pull[bot]

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit to xjc90s/webdriver that referenced this pull request Sep 8, 2025
SHA: a101f0a
Reason: push, by pull[bot]

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@yezhizhen yezhizhen deleted the fix-circular-definition branch September 8, 2025 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants