From 2b95774af97cac778387838715e955611e49a5b1 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Mon, 9 Apr 2018 22:30:20 -0700 Subject: [PATCH] docs(api.md): mention header/footer template limitations in `page.pdf`. (#2341) References #2167. --- docs/api.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/api.md b/docs/api.md index 83b9ab168d5..7ce22aadd08 100644 --- a/docs/api.md +++ b/docs/api.md @@ -1117,6 +1117,10 @@ The `format` options are: - `A5`: 5.83in x 8.27in - `A6`: 4.13in x 5.83in +> **NOTE** `headerTemplate` and `footerTemplate` markup have the following limitations: +> 1. Script tags inside templates are not evaluated. +> 2. Page styles are not visible inside templates. + #### page.queryObjects(prototypeHandle) - `prototypeHandle` <[JSHandle]> A handle to the object prototype. - returns: <[Promise]<[JSHandle]>> Promise which resolves to a handle to an array of objects with this prototype.