w3c/csswg-drafts

[cssom-view] HTMLElement offsetParent quirk?

Open

#1.812 aberto em 13 de set. de 2017

Ver no GitHub
 (2 comments) (0 reactions) (0 assignees)HTML (545 forks)batch import
Help Wantedcssom-view-1

Métricas do repositório

Stars
 (3.546 stars)
Métricas de merge de PR
 (Mesclagem média 87d 7h) (24 fundiu PRs em 30d)

Description

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

Guia do colaborador