[whatwg] High-density canvases

Rik Cabanier cabanier at gmail.com
Wed Sep 11 11:57:11 PDT 2013


On Wed, Sep 11, 2013 at 11:24 AM, Ian Hickson <ian at hixie.ch> wrote:

> On Wed, 11 Sep 2013, Robert O'Callahan wrote:
> >
> > Pinch-zoom is hard because we don't want to trigger reflows or other
> > expensive behavior on pinch-zoom. I'd leave pinch-zoom out of it for
> > now.
>
> Unless I'm missing something fundamental, changing the pixel density
> doesn't cause a layout, it's changing the width that causes a layout.


It will do a layout if the width is directly or indirectly dependent on the
CSS pixelratio.
For instance, notice how the text boxes reflow if you change the page zoom:
http://jsfiddle.net/BtAK7/1/



More information about the whatwg mailing list