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

Re: CSSOM getBoundingClientRect and device scaling

From: Robert O'Callahan <robert@ocallahan.org>
Date: Wed, 23 Sep 2009 17:47:15 +1200
Message-ID: <11e306600909222247r56cf3094wf7f483d502a84a2a@mail.gmail.com>
To: Garrett Smith <dhtmlkitchen@gmail.com>
Cc: www-style <www-style@w3.org>
On Wed, Sep 23, 2009 at 10:41 AM, Garrett Smith <dhtmlkitchen@gmail.com>wrote:

> Has zoom/scaling been mentioned before? I am noticing that some
> implementations will scale a page to a certain value. The method
> getBoundingClientRect does not mention that the value returned should
> be "de-scaled".
> http://www.w3.org/TR/cssom-view/#dom-element-getboundingclientrect
> Opera mini, in "Mobile view," scales the page. Fine, but then
> getBoundingClientRect returns the actual pixel values, not "de-scaled"
> values.
> I did a brief write up on the problem I noticed with Opera Mini:
> http://my.opera.com/dhtmlkitchen/blog/show.dml/4359747
> Should the spec mention what should happen when the device rescales values?

The CSSOM spec says

> All coordinates and dimensions for the APIs defined in this specification
> are in CSS pixels.

This surely means that the UA must return "de-scaled" values.

"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
Received on Wednesday, 23 September 2009 05:47:55 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:39 UTC