- From: Garrett Smith <dhtmlkitchen@gmail.com>
- Date: Wed, 23 Sep 2009 00:09:57 -0700
- To: robert@ocallahan.org
- Cc: www-style <www-style@w3.org>
On Tue, Sep 22, 2009 at 10:47 PM, Robert O'Callahan <robert@ocallahan.org> wrote: > 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. > CSS Pixels. Opera mini is returning "device pixels". It is a bug. Thank you for the clarification. Garrett
Received on Wednesday, 23 September 2009 07:10:39 UTC