New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add forced-colors to emulateMediaFeature #8123
Comments
I’m interested in this as well, and emulation of
If someone needs this in the meantime, you can use a const client = await page.target().createCDPSession();
await client.send("Emulation.setEmulatedMedia", {
features: [{ name: "forced-colors", value: "active" }],
}) I wanted to try to make a PR for this but had trouble emulating multiple media features at once with this approach – not sure if I was doing it wrong but it’d be worth someone else double checking. |
Any updates on when this functionality will be available? |
Now that forced-colors can be emulated in chromium we should add this ability to puppeteer. This will allow us to better test high contrast mode.
The text was updated successfully, but these errors were encountered: