Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cssom-view] HTMLElement offsetParent quirk? #1812

Open
andrewplummer opened this issue Sep 13, 2017 · 2 comments
Open

[cssom-view] HTMLElement offsetParent quirk? #1812

andrewplummer opened this issue Sep 13, 2017 · 2 comments

Comments

@andrewplummer
Copy link

Apologies if this is not the right place to post this.
Although I'm sure this spec is ancient, is it not incorrect to report <body> as an offsetParent when the body is statically positioned, as it is by default?

This can easily be seen as unexpected behavior by creating an absolutely positioned element with bottom in a long document. The element is clearly positioned relative to documentElement, not `body.

https://drafts.csswg.org/cssom-view/#dom-htmlelement-offsetparent

@Loirooriol
Copy link
Contributor

The document element is also statically positioned by default.

@andrewplummer
Copy link
Author

@Loirooriol Sorry, you appear to be correct, it's actually positioned relative to the viewport. In any case it doesn't seem to make sense to report body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants