The first step is to expose a backingStorePixelRatio API in the PaintRenderingContext2D, the ratio should be calculated based on the csspixels vs backingstorepixels.
Once that is done, we need to look into the subpixel problems, where in the cases that we round the pixels.
Comment 1 by xidac...@chromium.org
, Jun 1 2017