| commit | bd1450261d8eb1f6e1aa48ae922a00149a65c241 | [log] [tgz] |
|---|---|---|
| author | Mathias Bynens <mathias@chromium.org> | Mon Sep 30 12:56:36 2019 |
| committer | Commit Bot <commit-bot@chromium.org> | Mon Sep 30 12:56:36 2019 |
| tree | 91e317a2eb7a482cd86d5a8ff2cd473130d94f41 | |
| parent | b5463988c230b78380a92e2816d50ca03cf0d245 [diff] |
[DevTools] Support CSS media feature emulation in CDP This patch makes the pre-existing `Emulation.setEmulatedMedia` API in the Chrome DevTools Protocol support emulating CSS media features, in addition to CSS media types (which it already supported). The new functionality can be used to emulate `prefers-color-scheme` (light/dark mode), `prefers-reduced-motion`, and any other media features Chrome implements from now on. Design doc: https://goo.gle/devtools-dark-mode Bug: chromium:1004246 Change-Id: I62ade2fa978a78e90e00b47915101950ca735c62 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1821608 Reviewed-by: Benedikt Meurer <bmeurer@chromium.org> Reviewed-by: Yang Guo <yangguo@chromium.org> Reviewed-by: Andrey Kosyakov <caseq@chromium.org> Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Mathias Bynens <mathias@chromium.org> Cr-Commit-Position: refs/heads/master@{#701084}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .