W3C home > Mailing lists > Public > www-style@w3.org > April 2008

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

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Tue, 22 Apr 2008 20:48:03 -0700
Message-ID: <c9e12660804222048m5d25d9c8g908953e1350d1fe9@mail.gmail.com>
To: "Sylvain Galineau" <sylvaing@microsoft.com>
Cc: "www-style@w3.org" <www-style@w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:05 GMT