Re: [mediaqueries] resolution and device-pixel-ratio

On 23 Nov 2013, at 6:57 am, Maciej Stachowiak <mjs@apple.com> wrote:

> 
> On Nov 22, 2013, at 11:43 AM, Rik Cabanier <cabanier@gmail.com> wrote:
> 
>> 
>> 
>> I realize there's arguments either way, but if a value with the page zoom factored in is useful, then surely it could have another name instead of conflicting.
>> 
>> (Though for the record, what are the reasons to include the page zoom? If they are documented elsewhere, a pointer would be sufficient.)
>> 
>> For instance, if zoom is 110%, devicepixelratio becomes 1.1.
>> If you have a canvas of 1000x1000 css pixels, you will need to set a backing store of 1100x1100 pixels and apply a scale of (1.1, 1.1)
> 
> I'm pretty sure canvas authors do not actually want that. They'd often prefer to have the backing store be an integer ratio of their preferred size.

Exactly. Remember the kerfuffle about 8-bit style games in canvas. They are going to want to draw 1:1 into the unscaled backing store, even if the actual resulting canvas is scaled.

Dean

Received on Friday, 22 November 2013 20:14:56 UTC