From 9753aaa01f7e4daa91bc2151e356a27ae9c23baf Mon Sep 17 00:00:00 2001 From: Morten Stenshorne Date: Tue, 30 Apr 2024 09:02:12 -0700 Subject: [PATCH] Add printing WPT test for fixedpos and variable page size. Fixed-positioned elements are positioned within the initial containing block, which, for pagination, is defined as the page area size of the first page. Even if the first page isn't large enough for the fixed-positioned element, subsequent pages may be large enough. This test passes in Blink. Change-Id: I49fdc8d735a126ff928e6098c733e9fe053f80fe Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5499460 Reviewed-by: Ian Kilpatrick Commit-Queue: Morten Stenshorne Cr-Commit-Position: refs/heads/main@{#1294362} --- css/css-page/fixedpos-010-print-ref.html | 28 ++++++++++++++++++++++++ css/css-page/fixedpos-010-print.html | 25 +++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 css/css-page/fixedpos-010-print-ref.html create mode 100644 css/css-page/fixedpos-010-print.html diff --git a/css/css-page/fixedpos-010-print-ref.html b/css/css-page/fixedpos-010-print-ref.html new file mode 100644 index 00000000000000..90bd5e7fc31f5e --- /dev/null +++ b/css/css-page/fixedpos-010-print-ref.html @@ -0,0 +1,28 @@ + + + +This page should not have a blue box. +
+
+
+ This page should have a blue box in the bottom right corner. +
+
+
+
+ This page should have a blue box in the bottom right corner. +
+
+
+This page should not have a blue box. diff --git a/css/css-page/fixedpos-010-print.html b/css/css-page/fixedpos-010-print.html new file mode 100644 index 00000000000000..cdd50828d865d6 --- /dev/null +++ b/css/css-page/fixedpos-010-print.html @@ -0,0 +1,25 @@ + + + + + +
+This page should not have a blue box. +
+ This page should have a blue box in the bottom right corner. +
+ This page should have a blue box in the bottom right corner. +
+
+This page should not have a blue box.