Just for reference, I ended up using the html2canvas library which does support window.devicePixelRatio