Re: [cssom-view] Why is body's offsetParent null ?

On Tue, Apr 22, 2008 at 4:59 PM, Sylvain Galineau
<sylvaing@microsoft.com> wrote:
>
>  The current spec and user agents I have tested - IE7, FF3b5, Safari 3.1, Opera 9.5b1 -  set body's offsetParent property to null even though a) body has offset properties for which b) there is a reference element - html - with box properties of its own.
>

Excellent point, Sylvain. I noticed that, too.

>  My question is : what are the reasons for this beyond compatibility with IE legacy ?
>

I take it you haven't been following the list.

>  Notes:
>  - In standards mode, IE8 Beta 1 currently sets body's offsetParent to html; html's offsetParent is null.
>  - IE quirks mode may return html as the offsetParent of a child element of body.
>

Maybe there should be a compatibility note in the spec.

Best Regards,

Garrett

>  Thanks,
>  Sylvain
>
>
>

Received on Wednesday, 23 April 2008 03:48:43 UTC