W3C home > Mailing lists > Public > www-style@w3.org > October 2009

[CSSOM] offsetWidth, offsetLeft issues

From: Erik Arvidsson <arv@chromium.org>
Date: Wed, 14 Oct 2009 12:50:14 -0700
Message-ID: <34df39070910141250w70da3276y8284d4096084fb60@mail.gmail.com>
To: www-style@w3.org
The following rules are always true in IE

bounding box of getClientRects is always the same as getBoundingClientRect
The width and height of getBoundingClientRect is always the same as
offsetWidth and offsetHeight.

However, http://www.w3.org/TR/cssom-view/#offset-attributes says it
should return the border edge. In most cases this is the same but once
again tables with captions roars its ugly head. The border edge of a
table with a caption does not include the caption and therefore the
rules above do not hold true.

Like, with getClientRects only Firefox follows the spec.

Received on Wednesday, 14 October 2009 19:51:06 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:29 UTC