w3c/csswg-drafts

[cssom-view] HTMLElement offsetParent quirk?

Open

#1,812 建立於 2017年9月13日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)HTML (3,546 star) (545 fork)batch import
Help Wantedcssom-view-1

描述

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

貢獻者指南