- From: Maciej Stachowiak <mjs@apple.com>
- Date: Tue, 27 Jul 2010 03:24:42 -0700
- To: Henri Sivonen <hsivonen@iki.fi>
- Cc: Anne van Kesteren <annevk@opera.com>, tlr@w3.org, robin@robineko.com, "frederick.hirsch" <frederick.hirsch@nokia.com>, public-device-apis@w3.org, public-html@w3.org, Dominique Hazael-Massieux <dom@w3.org>
On Jul 27, 2010, at 3:17 AM, Henri Sivonen wrote: > Anne van Kesteren wrote: >> width/height should be clarified whether they are about CSS pixels or >> device pixels. They should probably be CSS pixels. It should probably >> say >> something like "width returns the intrinsic width of the image in CSS >> pixels"... > > Surely for the case of examining an image that's being prepared for upload the actual file pixels are more interesting than CSS pixels. In fact, it's not even clear how to define measurements in CSS pixels without choosing what size the image will be displayed at. If you're running with 1 CSS pixel = 2 device pixels, you could reasonably display an image at 1 image pixel = 1 CSS pixel (the likely default in most contexts) or 1 image pixel = 1 device pixel if you choose to scale it down to take advantage of the higher resolution. But then, you could scale it to any other size as well. Regards, Maciej
Received on Tuesday, 27 July 2010 10:25:20 UTC