W3C home > Mailing lists > Public > public-html@w3.org > July 2010

Re: HTML Media Capture draft from Device APIs and Policy Working Group

From: Maciej Stachowiak <mjs@apple.com>
Date: Tue, 27 Jul 2010 03:24:42 -0700
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>
Message-id: <7C3321C9-F3AD-40A6-8036-A6FCF2581FFB@apple.com>
To: Henri Sivonen <hsivonen@iki.fi>

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:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:17:10 GMT