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

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 UTC