summaryrefslogtreecommitdiffstats
path: root/layout/reftests/pagination/1166147.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /layout/reftests/pagination/1166147.html
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--layout/reftests/pagination/1166147.html36
1 files changed, 36 insertions, 0 deletions
diff --git a/layout/reftests/pagination/1166147.html b/layout/reftests/pagination/1166147.html
new file mode 100644
index 0000000000..585f55fd30
--- /dev/null
+++ b/layout/reftests/pagination/1166147.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<!--
+This test checks if content is paginated correctly in the horizontal
+direction when printing. The test passes if the pages generated
+are identical for both vertical-lr and horizontal-tb writing-modes by means of
+making the size of the content we are printing equal to exactly the same number
+of pages being generated in each writing mode.
+This sizing is calculated like so:
+
+1. It is important to note that irrespective of the writing-mode, the print
+ UI always lays out printed pages vertically. Therefore, it is possible
+ to equate the printed content of two different writing modes if both
+ cases generate the exact same number of pages (and of course no text on
+ the pages, which is why we use background color since it is independent
+ of writing mode).
+2. To avoid an unnecessary vertical scrollbar (since scrolled content will be
+ clipped anyway in the reftest snapshot), the maximum number of 5X3in pages
+ that we should generate for the reftest snapshot are equal to 3.
+3. Considering a margin of 0.5in on each side of the 5X3in page, we get the
+ size of the page content area to be 4X2in per page and to generate exactly 3
+ printed pages from this in the vertical-rl writing mode, we need a printable
+ area of 12X2in (as used below).
+
+Similarly, the size for the reference printable area is calculated, only
+considering a horizontal-tb writing mode.
+
+It is important to note here that when printing this test outside of the test
+harness, the background color will not show since we omit printing and
+previewing of background colors by default via the browser printing path.
+-->
+<html class="reftest-paged" style="writing-mode: vertical-rl;">
+ <body style="margin:0;">
+ <div style="background: teal; width:12in; height:2in;">
+ </div>
+ </body>
+</html> \ No newline at end of file