summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-break/flexbox/single-line-row-flex-fragmentation-045-print.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-break/flexbox/single-line-row-flex-fragmentation-045-print.html')
-rw-r--r--testing/web-platform/tests/css/css-break/flexbox/single-line-row-flex-fragmentation-045-print.html48
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-break/flexbox/single-line-row-flex-fragmentation-045-print.html b/testing/web-platform/tests/css/css-break/flexbox/single-line-row-flex-fragmentation-045-print.html
new file mode 100644
index 0000000000..f51d0d161f
--- /dev/null
+++ b/testing/web-platform/tests/css/css-break/flexbox/single-line-row-flex-fragmentation-045-print.html
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<!-- This test is adapted from https://bugzilla.mozilla.org/show_bug.cgi?id=1744363#c9 -->
+<html>
+ <meta charset="utf-8">
+ <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
+ <link rel="author" title="Mozilla" href="https://www.mozilla.org/">
+ <link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">
+ <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1744363">
+ <link rel="match" href="single-line-row-flex-fragmentation-045-print-ref.html">
+
+ <style>
+ @page { size: 5in 3in; margin: 0.5in; }
+ body {
+ margin: 0;
+ }
+ .flexbox {
+ display: flex; /* This triggers the bug. */
+ border: 0.25in solid black;
+ }
+ .flexbox table {
+ border-spacing: 0;
+ }
+ .flexbox thead, .flexbox tfoot {
+ background: gold;
+ }
+ .text, tr {
+ block-size: 0.25in;
+ }
+ </style>
+
+ <div class="text">Before Flexbox</div>
+ <div class="flexbox">
+ <table>
+ <thead><tr><td>Header</td></tr></thead>
+ <tfoot><tr><td>Footer</td></tr></tfoot>
+ <tbody>
+ <tr><td>1</td></tr>
+ <tr><td>2</td></tr>
+ <tr><td>3</td></tr>
+ <tr><td>4</td></tr>
+ <tr><td>5</td></tr>
+ <tr><td>6</td></tr>
+ <tr><td>7</td></tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="text">After Flexbox</div>
+</html>