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

[cssom-view] Variation of getBoundingClientRect which includes all CSS transformations

From: Mitar <mmitar@gmail.com>
Date: Sat, 18 Apr 2015 18:41:14 -0700
Message-ID: <CAKLmikOgZhPGvyjgVo+9TjdGNrks9b64hiDRUvoyYXtnpt99CQ@mail.gmail.com>
To: www-style list <www-style@w3.org>

Currently, some browsers implement getBoundingClientRect and respect
CSS transformations. Which is great, but it gives you really just a
bounding rectangle, and not really the precise position of rendered
element on the page including its rotation and other transforms.

So I am proposing that there should be also a variation, which would
return you the bounding rectangle of the element, but include
information like rotation.

So if one would like to create another div which would precisely cover
the rendered element, one can do this. Currently, you get an oversized
rectangle which is perpendicular to the page, instead of following the
rotation (and other transforms) of the element.


Received on Sunday, 19 April 2015 01:41:45 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:30 UTC