Re: [csswg-drafts] Position Observer (#9610)

I was thinking relative to the viewport. This seems the most useful to me. If the user want to know the position relative to an ancestor or any other specific node, they could still use the api, monitor both elements for position changes, and check whether both elements have moved relative to each other.

Another option would be to pass on optional ```relativeTo``` parameter, that would default to the viewport if not set.

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


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

Received on Friday, 17 November 2023 23:58:37 UTC