W3C home > Mailing lists > Public > www-style@w3.org > November 2013

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

From: Dean Jackson <dino@apple.com>
Date: Sat, 23 Nov 2013 07:14:23 +1100
Cc: Rik Cabanier <cabanier@gmail.com>, Jonathan Kew <jfkthame@googlemail.com>, www-style list <www-style@w3.org>
Message-id: <661B5718-9922-4583-8EF7-C004161716B2@apple.com>
To: Maciej Stachowiak <mjs@apple.com>

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.


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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:37 UTC