W3C home > Mailing lists > Public > www-style@w3.org > February 2007

Re: [CSS-X] [cssom] Update on the CSSOM

From: mikewse <mikewse@hotmail.com>
Date: Fri, 23 Feb 2007 13:49:30 -0800 (PST)
Message-ID: <9127451.post@talk.nabble.com>
To: www-style@w3.org



Anne van Kesteren-2 wrote:
> 
> Comments welcome (please prefix the subject with [cssom]), but please note  
> the status of the draft. It will change.
> 

About offset*:
"The offsetLeft attribute of Element node A must be the number of pixels
that the top border edge of A is to the right of the top border edge of
A.offsetParent. If A.offsetParent is null or represents the body element it
must be the number of pixels that the top border edge of A is to the right
of the origin (0,0) of the initial containing block."

My tests with Firefox 2.0 consistently produces an offsetLeft measuring from
A's border edge to A.offsetParent's *padding* edge (and not border edge).
Who is right?
(Or do you mean the "inside edge" of A.offsetParent's border? ;-)

Best regards
Mike Wilson
-- 
View this message in context: http://www.nabble.com/-cssom--Update-on-the-CSSOM-tf3020756.html#a9127451
Sent from the w3.org - www-style mailing list archive at Nabble.com.
Received on Friday, 23 February 2007 21:49:37 GMT

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