w3c/csswg-drafts

[cssom-view] HTMLElement offsetParent quirk?

Open

#1812 aperta il 13 set 2017

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)HTML (545 fork)batch import
Help Wantedcssom-view-1

Metriche repository

Star
 (3546 star)
Metriche merge PR
 (Merge medio 87g 7h) (24 PR mergiate in 30 g)

Descrizione

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

Guida contributor