How can I emulate prefers-color-scheme media query in Chrome?
问题 Chrome 76 has added support for prefers-color-scheme media query (a.k.a. "dark mode"). But how can I test my webpage in both color schemes easily, without toggling the system dark mode on and off? Here is the same question for Firefox, but I can't find similar settings in Chrome & Chrome DevTools. 回答1: Since Chrome version 79 you can toggle between prefers-color-scheme: dark and prefers-color-scheme: light from the Rendering panel Open Developer tools (otherwise the key combination below