Suggestions for debugging print stylesheets?

There is an option for that in Chrome’s inspector.

  1. Open the DevTools inspector (mac: Cmd + Shift + C , windows: Ctrl + Shift + C)
  2. Click on the Toggle device mode icon Toggle device mode button, located on the upper left corner of the DevTools panel. (windows: Ctrl+Shift+M, mac: Cmd+Shift+M).
  3. Click on the More overrides more overrides icon in the top right corner of the browser viewport to open the devtools drawer.
  4. Then, select Media in the emulation drawer, and check the CSS media checkbox.

    enter image description here

This should do the trick.

Update: The menus have changed in DevTools.
It can now be found by clicking on the “three-dots” menu in the top right corner > More Tools > Rendering Settings > Emulate media > print.

Source: Google DevTools page*

Leave a Comment