W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2019

Re: [csswg-drafts] [cssom-view] {element, elements, nodes}FromPoint but without restricting to the viewport clip? (#4122)

From: Emilio Cobos Álvarez via GitHub <sysbot+gh@w3.org>
Date: Wed, 17 Jul 2019 16:31:50 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-512356727-1563381109-sysbot+gh@w3.org>
Basically, what that page is doing (AIUI) is scanning the DOM for potentially interesting elements, and needs to determine whether they're "visible". getElementsFromPoint is a nice way to ensure that the element is displayed and potentially-visible.

Another use-case (which I read yesterday but forgot the source) is checking whether two things intersect at an arbitrary point. `elementsFromPoint()` at that point works, but only if inside the viewport.

-- 
GitHub Notification of comment by emilio
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4122#issuecomment-512356727 using your GitHub account
Received on Wednesday, 17 July 2019 16:31:53 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:50 UTC