Re: [csswg-drafts] [css-anchor-1] Need ability to say "don't render" when anchor is off-screen (#7758)

Just saw the blog on this and was concerned about this, watching them overlayed outside the container. My custom anchor system uses `InsersectionObserver`:

https://github.com/clshortfuse/materialdesignweb/blob/d4aad60b14b4820d4b7ae207f78653f9a5b33b5d/mixins/TooltipTriggerMixin.js#L61-L86

`this` is the the anchor. If the anchor is less than 50% visible, I close the tooltip. Automatic handling is neat, but I think `InsersectionObserver` would handle it. Now if we're saying over CSS, then that's something else...



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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 1 March 2023 15:18:23 UTC