From 21c2d31523436f17bbd560bf5b6ac02f748a536f Mon Sep 17 00:00:00 2001 From: Joshua H <32615911+jshamg@users.noreply.github.com> Date: Wed, 8 Apr 2020 11:33:34 +0200 Subject: [PATCH] docs(api): update another emulateMediaType example (#5607) --- docs/api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api.md b/docs/api.md index e137593748372..65c6014773caf 100644 --- a/docs/api.md +++ b/docs/api.md @@ -1676,7 +1676,7 @@ Page is guaranteed to have a main frame which persists during navigations. > **NOTE** Generating a pdf is currently only supported in Chrome headless. -`page.pdf()` generates a pdf of the page with `print` css media. To generate a pdf with `screen` media, call [page.emulateMedia('screen')](#pageemulatemediamediatype) before calling `page.pdf()`: +`page.pdf()` generates a pdf of the page with `print` css media. To generate a pdf with `screen` media, call [page.emulateMediaType('screen')](#pageemulatemediatypetype) before calling `page.pdf()`: > **NOTE** By default, `page.pdf()` generates a pdf with modified colors for printing. Use the [`-webkit-print-color-adjust`](https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-print-color-adjust) property to force rendering of exact colors.