You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to chromium...@chromium.org
Hi,
I was wondering if there is a way to set the devicePixelRatio before the DOM is loaded in Chrome? The use case is so that I can easily test media queries for high density devices from within my Chrome browser that has a pixel ratio of 1.
I've tried creating an extension that uses content scripts to run before the page loads and setting window.devicePixelRatio but this did not work. Perhaps this cannot be done in JavaScript alone and is actually something that is implemented in the main codebase?
Kevin
Nico Weber
unread,
Sep 30, 2012, 8:20:26 PM9/30/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to kbra...@googlemail.com, chromium...@chromium.org
That's currently not possible. http://crbug.com/144635 is a feature
request to enable changing the device scale factor via devtools, you
can star this issue to be notified when this becomes available.