From bcf56015b4892736bbbb69fbb76530c11b719da3 Mon Sep 17 00:00:00 2001 From: jrandolf <101637635+jrandolf@users.noreply.github.com> Date: Mon, 11 Sep 2023 13:11:31 +0200 Subject: [PATCH] Enforce minimum page size dimensions (#534) This original PR (https://github.com/w3c/webdriver-bidi/pull/522) used invalid syntax for the minimum size. --- index.bs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.bs b/index.bs index de2c4f9f..580fc0ff 100644 --- a/index.bs +++ b/index.bs @@ -2827,9 +2827,11 @@ PDF document represented as a Base64-encoded string. ? top: (float .ge 0.0) .default 1.0, } + ; Minimum size is 1pt x 1pt. Conversion follows from + ; https://www.w3.org/TR/css3-values/#absolute-lengths browsingContext.PrintPageParameters = { - ? height: (float .ge (2.54 / 72)) .default 27.94, - ? width: (float .ge (2.54 / 72)) .default 21.59, + ? height: (float .ge 0.0353) .default 27.94, + ? width: (float .ge 0.0353) .default 21.59, }