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

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

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Sat, 8 Mar 2008 09:00:22 -0800
Message-ID: <c9e12660803080900o67abea80x7848a1caa1b29585@mail.gmail.com>
To: "Anne van Kesteren" <annevk@opera.com>
Cc: www-style@w3.org

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.

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.

Where is the test suite for ClientRect?

Garrett

>
>
>  --
>  Anne van Kesteren
>  <http://annevankesteren.nl/>
>  <http://www.opera.com/>
>
>
Received on Saturday, 8 March 2008 17:00:37 GMT

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