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

Re: [cssom-view] add height/width to ClientRect?

From: Anne van Kesteren <annevk@opera.com>
Date: Sun, 09 Mar 2008 16:02:28 +0100
To: "Garrett Smith" <dhtmlkitchen@gmail.com>
Cc: www-style@w3.org
Message-ID: <op.t7q72eiu64w2qv@annevk-t60.oslo.opera.com>

On Sat, 08 Mar 2008 18:00:22 +0100, Garrett Smith <dhtmlkitchen@gmail.com>  
> On Sat, Mar 8, 2008 at 4:12 AM, Anne van Kesteren <annevk@opera.com>  
> wrote:
>>  Should we extend ClientRect with a height and width attribute?
> TextRectangle is called ClientRect now. I actually like this. It
> attempts to avoid any anomalous incomapatability issues with IE.

That's not true actually as explained in the e-mails that led to this  

>> They are
>> somewhat redundant as you can calculate height by bottom-top and width  
>> by right-left, but having them directly available is convenient for  
>> authors and very low cost for implementors.
>>  Thoughts?
> I usually just use el.offsetHeight offsetLeft which seem to work as
> specified in the browsers.

That doesn't work for anonymous block boxes, caption boxes, and non-HTML  

> Where is the test suite for ClientRect?

There's no formal test suite yet that I know of.

Anne van Kesteren
Received on Sunday, 9 March 2008 15:02:33 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:34 UTC