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

Just like Firefox, Chromium has non-web-exposed use-cases for skipping the clip. Our use cases are:

* Visually positioning carets and selection ranges
* Detecting colors underneath elements in DevTools
* IntersectionObserver occlusion testing

I'd like to understand better the required web-exposed use cases before we agree to this API, because as Tab mentioned there are some performance downsides, and this API could end up being a new footgun in practice.

In particular, for the use case you mentioned @emilio of measuring on-screen-ness: is IntersectionObserver awkward for that use-case?

Regarding detecting whether two elements intersect at an arbitrary point, or overlap that point: I'm not sure what that's for?

-- 
GitHub Notification of comment by chrishtr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4122#issuecomment-516164348 using your GitHub account

Received on Monday, 29 July 2019 21:12:30 UTC