Re: [csswg-drafts] [cssom-view] Spec for offsetTop/Left does not match impls when offsetParent is `position:static` `<body>` element (#10549)

As it looks like this is going to be discussed, I thought I would add my expectations from an web author's perspective:

- I would *not* expect the HTML `<body>` element to be treated specially
- I would expect the values for `offsetTop`/`offsetLeft` to be computed relative to the viewport if there are no positioned nodes intervening.
- I would expect the values for `offsetTop`/`offsetLeft` to be computed relative to the `<html>` element if `<html>` is positioned and there are no other positioned nodes intervening.

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


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

Received on Monday, 22 July 2024 23:39:27 UTC