
Rendering method refers to whether Chrome renders the page as a mobile or desktop viewport. The table below describes the differences between the options. If you can't see the list on the action bar at the top, select More options > Add device type. Use the Device Type list to simulate a mobile device or desktop device. In the action bar at the top of the viewport, select a DPR value from the new DPR drop-down menu. Chrome uses the DPR value when drawing on HiDPI (High Dots Per Inch) displays.Ĭlick More options > Add device pixel ratio. In other words, DPR tells Chrome how many screen pixels to use to draw a CSS pixel. # Set device pixel ratioĭevice pixel ratio (DPR) is the ratio between physical pixels on the hardware screen and logical (CSS) pixels. DevTools opens the Sources panel at the corresponding line in the Editor. To find the corresponding declaration, right-click between breakpoints and select Reveal in source code.


For example, the architecture of mobile CPUs is very different than the architecture of laptop or desktop CPUs. There are some aspects of mobile devices that DevTools will never be able to simulate. You simulate the mobile user experience from your laptop or desktop. With Device Mode you don't actually run your code on a mobile device. Think of Device Mode as a first-order approximation of how your page looks and feels on a mobile device. Alternatively, you can throttle connection speed in the Network panel.
